while True:
print("Do you want as(add and subtract) or md(multiply and divide)?")
answerofask1 = input()
if answerofask1 == 'as':
print("Do you want add or subtract?")
answerofask2 = input()
if answerofask2 == 'add':
print("Please write your addend")
addend1 = float(input())
print("Please write your addend")
addend2 = float(input())
answerofadd = addend1 + addend2
print("The answer is :", addend1, "+", addend2, "= ", answerofadd)
elif answerofask2 == 'subtract':
print("please write your minuend")
minuend = float(input())
print("Please write your reduction")
reduction = float(input())
answerofsubtract = minuend - reduction
print("The answer is :", minuend, "-", reduction, "=", answerofsubtract)