#include<iostream> using namespace std; int main(){ int bcs,cs; cin>>bcs>>cs; cout<<bcs/cs<<' '<<bcs%cs; return 0; }