main(n){for(;~scanf("%d",&n);printf("%d is%s a leap year.\n",n,n%4|!(n%25)*n%16?" not":""));}