print "Nhap so a = "
a = input()
print "nhap so b= "
b =  input()

print "Tong 2 so a & b la: ", a + b
print "Hieu 2 so a & b la: ", a - b
print "Tich a & b: ",a * b
if b == 0:
    print "khong the chia cho 0"
else:    
    print "Thua 2 so a va b: ", a / b
    print "Phep chia co du a va b la ", a % b
print  a,"^",b, "=", a**b
