# Name: Rich
# Date: 6/19/17

# proj01: A Simple Program
# This program asks the user for his/her name and age.
# Then, it prints a sentence that says when the user will turn 100.

# If you complete extensions, describe your extensions here!

User_Name = raw_input("What is your Name?:  ")
firstletter = User_Name[0]
cf = firstletter.upper()
op = User_Name[1:].lower()
print "Your name is", cf + op
User_Age = int(raw_input("How old are you?:  "))
x = ((100-User_Age)+2017)
BD = raw_input("Have you had your birthday this year?:  ")
if (BD == "no"): x = x - 1
if User_Age >= 100:
    print "you turned 100 in", x
else:
    print "You will be 100 in", x
if User_Age > 16:
    print "You can watch G, PG, PG-13, and R movies"
elif User_Age > 12:
    print "You can watch G, PG, and PG-13 movies"
elif User_Age < 13:
    parent = raw_input("Do you have a parent with you?:  ")
    if (parent == "no"):
        print "You can watch G movies"
    else:
        print "You can watch G and PG movies"