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