#import main(int n){while(~scanf("%d",&n))printf("%d is%s a leap year.\n",n,n%4||n%16&&n%25<1?" not":"");}