# Arup Guha
# 6/8/2022
# Age Re-Typed

# Today's date stored in a constant.
CURMONTH = 6
CURDAY = 8
CURYEAR = 2022

birthyear = int(input("What year were you born?\n"))
birthmonth = int(input("What month were you born, 1 - 12?\n"))
birthday = int(input("What day in that month were you born?\n"))

# Initial guess which is sometimes correct.
age = CURYEAR - birthyear

# Adjust if birthday is in a later month.
if birthmonth > CURMONTH:
    age = age - 1

# Or if it's the right month but the day hasn't yet happened.
elif birthmonth == CURMONTH and birthday > CURDAY:
    age = age - 1

# Display age!
print("You are",age,"years old.")
