import java.util.Scanner;
public class a004 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int cout = 0;
Scanner cin = new Scanner(System.in);
while (cin.hasNext()) {
cout = cin.nextInt();
if (cout % 400 == 0) {
System.out.print("閏年");
}else if (cout % 4 == 0 && cout % 100 != 0) {
System.out.println("閏年");
}else {
System.out.println("平年");
}
}
cin.close();
}
}