main(s){while(~scanf("%d",&s))printf("%d is %.*sa leap year.\n",s,s%400*-!(s%100)-s%4,"not ");}