#Authore:  James Tam
#Version:  2020
#Learning: refresher example of a simple error handling loop.
JAN = 1
DEC = 12
month = -1
while((month < JAN) or (month > DEC)):
    month = int(input("Enter birth month (%d-%d): " \
                      %(JAN,DEC)))

print(month)
