amount = int(input("Enter the amount:"))
code=input("Enter Promo Code:")


if amount>200 and  code!="zomato":
    code = input("enter correct code:")
    if amount>200 and code=="zomato":
        amount = amount - 0.4 * amount
        print(" Promo code applied .You got 40& off. Pay:", amount)
    else:
        print("enter correct code and try  again")

elif amount>200 and code=="zomato":
    amount = amount - 0.4 * amount
    print(" Promo code applied .You got 40& off. Pay:", amount)


# elif amount>200 and code=="zomato":
#     amount = amount - 0.4 * amount
#     print(" Promo code applied .You got 40& off. Pay:", amount)


elif amount>100 and code=="offer50":
    discount=0.5*amount
    if discount>150:
        amount=amount-150

    else:
        amount=amount-discount

    print("Promo code offer50 applied .You got 50& off. Pay:", amount)
else:
    print("no discounts. Pay:\u20b9", amount)







