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