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