x,y = map(int,input().split())
add = x+y mi = x-y gop = x*y nanu = round(x//y) print('{}\n{}\n{}\n{}'.format(add,mi,gop,nanu))