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