// Created by Ray Kuo on 2019/3/22.
// Copyright © 2019 Ray Kuo. All rights reserved.
#include <stdio.h>
int main()
{
int y;
scanf("%d",&y);
if ((y % 4 == 0 && y % 100 != 0) || (y % 400 == 0 && y % 3200 != 0))
printf("閏年\n");
else
printf("平年\n");
return 0;
}