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