# Allison Obourn
# CS 115, Autumn 2021
# Lecture 13

# This program prompts the user for the current month and day
# and their birthday month and day. It printw whether the current
# day is in the first half of the year, whether the user's birthday
# is in the first half of the year and prints whether the user's
# birthday has already occurred this year. 
def main():
    today_month = int(input("What month is today? "))
    today_day = int(input("What day is today? "))
    birth_month = int(input("What month is your birthday? "))
    birth_day = int(input("What day is your birthday? "))

    print()
    if today_month <= 6:
        print("Today is in the first half of the year.")
    else:
        print("Today is in the second half of the year.")
        
    if birth_month <= 6:
        print("Your birthday is in the first half of the year.")
    else:
        print("Your birthday is in the second half of the year.")

    # The birthday could be later if the month it is in is after or
    # if it is in the same month but ona later day. 
    if today_month < birth_month or (today_month == birth_month
                                     and today_day < birth_day):
        print("Your birthday will occur later this year.")
    else:
        print("Your birthday already happend this year.")

    

main()
