public class D070{
public static void main(String[] args){
java.util.Scanner sc = new java.util.Scanner(System.in);
while(sc.hasNext()){
int year = sc.nextInt();
if(year == 0) break;
print(isLeapYear(year));
}
}
public static boolean isLeapYear(int y) {
return y % 400 == 0 ? true : (y % 4 == 0 && y % 100 != 0) ? true : false;
}
public static void print(boolean b){
if(b) System.out.println("a leap year");
else System.out.println("a normal year");
}
}