#include <stdio.h> int main () { int a=0; int b=0; int s=0; int y=0; scanf("%d %d",&a,&b); s=a/b; y=a%b; printf("%d %d",s,y); return 0; }