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