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