https://www.acmicpc.net/problem/10869
a,b=map(int,input().split()) print(a+b) print(a-b) print(a*b) print(a//b) print(a%b)