print("강한친구 대한육군")
print("강한친구 대한육군")
print("\ /\\")
print(" ) ( ')")
print("( / )")
print(" \(__)|")
print("|\_/|")
print("|q p| /}")
print("( 0 )\"\"\"\\")
print("|\"^\"` |")
print("||_/=\\\__|")
a = input()
temp = a.split()
result = int(temp[0]) + int(temp[1])
print(result)
a = input()
temp = a.split()
result = int(temp[0]) - int(temp[1])
print(result)
a = input()
temp = a.split()
result = int(temp[0]) * int(temp[1])
print(result)
a = input()
temp = a.split()
result = int(temp[0]) / int(temp[1])
print(result)
#include <stdio.h>
int main()
{
int a, b;
scanf("%d %d",&a,&b);
printf("%d\n",a+b);
printf("%d\n",a-b);
printf("%d\n",a*b);
printf("%d\n",a/b);
printf("%d",a%b);
}
num = input()
temp = num.split()
a = int(temp[0])
b = int(temp[1])
c = int(temp[2])
result_a = (a+b)%c
result_b = ((a%c)+(b%c))%c
result_c = (a*b)%c
result_d = ((a%c)*(b%c))%c
print(result_a)
print(result_b)
print(result_c)
print(result_d)
num1 = int(input())
num2 = input()
three = int(num2[2])
two = int(num2[1])
one = int(num2[0])
temp = int(num2)
print(num1 * three)
print(num1 * two)
print(num1 * one)
print(num1 * temp)