#include<stdio.h>
int main () {
int a;
while(scanf("%d",&a) != EOF) {
if ((a & 3) == 0 && ((a % 25) != 0 || (a & 12) == 0))
printf("閏年\n");
else
printf("平年\n");
}
return 0;