#include<iostream> using namespace std; int main() { int m,n,p,q; cin>>m>>n; p=m/n; q=m-n*p; cout<<p<<" "<<q; return 0; }