# Please make sure to check Indentation if code shows error
    a = int(input())
    b = int(input())
    print(a+b)
    print(a-b)
    print(a*b)

# Code credit :- Akshat Jain  
# HackerRank Link :- https://www.hackerrank.com/akshat_jjain?hr_r=1
