#include using namespace std; int main() { int a,b,div,res; cin >> a; cin >> b; div = a/b; res = a-(div*b); if(res < 0) { div = div - 1; } res = a-(div*b); cout << div << " " << res << endl; return 0; }