#include
#include
main()
{
int y;
clrscr();
printf("\n enter the year\n ");
scanf("%d",&y);
if(y%4==0)
{
if(y%100==0)
{
if(y%400==0)
{
printf(" common year");
if(y%1000==0)
{
if(y%4000==0)
printf(" common year");
}}}
else
printf(" leap year");
}
else
printf(" common year");
getch();
}