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