import java.util.Scanner;
public class high{
public static void main(String[]argv){
int year;
Scanner sc=new Scanner(System.in);
while(sc.hasNext()){
year=sc.nextInt();
if((year%4==0 && year%100!=0) || year%400==0)
System.out.println("閏年");
else
System.out.println("平年");
}
}
}