#include <iostream>
#include <iomanip>
using namespace std;
int main(int argc, char** argv) {
int n;
while(cin >> n){
if (n%4!=0 or (n%100==0 and n%400!=0)){
cout << "平年" << "\n";
}
if ((n%4==0 and n%100!=0) or n%400==0){
cout << "閏年" << "\n";
}
}
}