year = int(input('Enter the year: ')) # Prints Yes or No based on if year is in the 21st century if year >= 2001 and year <= 2100: print("YES") else: print("NO")