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