main(){int i;for(;scanf("%d",&i)>0;printf("%d is%s a leap year.\n",i,i&3|!(i%25)&&i&15?" not":""));}