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