stdin.get_s(1K).split(" "){y:it.to_i;it~" is "~(y%4>0||y%100<1&&y%400>0?"not ":"")~"a leap year." .p;}