print("Welcome to RollerCoaster")
height = int(input("Enter your height in cm : "))
bill = 0

# Comparison operators are used more > , <= , == , > , >= , != 

if height >= 120 :
    print("You can ride the RollerCoaster")
    age = int(input("Enter your age : "))
    if age < 12 :
        bill = 5
        print("Childeren tickets are  $5")
    elif age <= 18 :
        bill = 7
        print("youth tickets are $7")
    elif age >= 45 and age <=55 :
        bill = 0
        print("Have a free ride")
    else :
        bill = 12
        print("Adult tickets are $12")

    photo = input("Do you want photo (y or n) : ")
    if photo == 'y' :
        bill += 3 
    print(f"your total bill : {bill}")
    
else :
    print("Sorry, you have to grow taller before you can ride")

