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