# 10998 A*B
a,b = input().split()
a = int(a)
b = int(b)
print(a*b)

# 1008 A/B
a,b = input().split()
a = int(a)
b = int(b)
print(a/b)

# 10869 사칙연산
a,b = input().split()
a = int(a)
b = int(b)
print(a+b,a-b,a*b,int(a/b),a%b, sep = "\n")