#Author Emily Keiser

def addition(x,y):
    return int(x)+int(y)
def subtraction (x,y) :
    return int(x) -int(y)
def multiplication (x,y) :
    return int(x) *int(y)
def module (x,y) :
    return int(x) %int(y)



a=raw_input("Enter variable a: ")
b=raw_input("Enter variable b: ")

print addition (a,b)
print subtraction (a,b)
print multiplication (a,b)
print module (a,b)


#addition
#c=int(a)+int(b)
#Output?
#print(c)
#subtraction
#d=int(a)-int(b)
#print(d)
#multiplication
#e=int(a)*int(b)
#print(e)
#module
#f=36%5
#print(f)



