#include<iostream>
#include<stdlib.h>
using namespace std;
int main(){
int year;
cin>>year;
if((year%400==0)||(year%100!=0)&&(year%4==0)){
cout<<"閏年\n";}
else{
cout<<"平年";}
return 0;
}