#include<cstdio> using namespace std; int main(){ int n,m; scanf("%d%d",&n,&m); printf("%d %d",(n/m),(n%m)); return 0; }