#include <iostream> #include <cstdio> #include <cstring> using namespace std; int main() { int a, c; cin >> a >> c; cout << a / c << " " << a % c; return 0; }