#include <stdio.h>
#include <stdlib.h>
int main(void){
int i;
while(scanf("%d",&i) != EOF){
if(i%400==0){
printf("閏年\n");
}else if((i%4==0)&&(i%100!=0)){
}else{
printf("平年\n");
}
return 0;