#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
int main()
{
int a = 0;
int b = 0;
int shang = 0;
int yu = 0;
scanf("%d %d" ,&a ,&b);
shang = a / b;
yu = a % b;
printf("%d %d" ,shang,yu );
return 0;
}
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
int main()
{
int a = 0;
int b = 0;
int shang = 0;
int yu = 0;
scanf("%d %d" ,&a ,&b);
shang = a / b;
yu = a % b;
printf("%d %d" ,shang,yu );
return 0;
}