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