﻿#3.1.1.12 LAB: Essentials of the if-elif-else statement
#rees gregorian claendar 

year = int(input("Enter a year: "))


#if the year number isn't divisible by four, it's a common year;
if year <=1852:
    print("Not within the Gregorian calendar period")
    exit()
if year % 4 !=0:
    print("it's a common year")
elif year % 100 !=0:
    print("it's a leap year")
elif year % 400 !=0:
    print("it's a common year")
else: print("it's a leap year")
    
#otherwise, if the year number isn't divisible by 100, it's a leap year;
#otherwise, if the year number isn't divisible by 400, it's a common year;
#otherwise, it's a leap year.
