a=float(input())
b=float(input())
print(a+b)
print(a-b)
print(a*b)
if b!=0: print(a/b)
print(a**b)
if b!=0: print(a//b)
if b!=0: print(a%b)
YT1mbG9hdChpbnB1dCgpKQpiPWZsb2F0KGlucHV0KCkpCnByaW50KGErYikKcHJpbnQoYS1iKQpwcmludChhKmIpCmlmIGIhPTA6IHByaW50KGEvYikKcHJpbnQoYSoqYikKaWYgYiE9MDogcHJpbnQoYS8vYikKaWYgYiE9MDogcHJpbnQoYSViKQ==