#include <stdio.h>
int main( )
{
int YY;
scanf ("%d",&YY);
if (YY%4==0&&YY%100!=0||YY%400==0)
printf("February %d has 29 days.\n",YY);
else
printf("February %d has 28 days.\n",YY);
return 0;
}
#include <stdio.h>
int main( )
{
int YY;
scanf ("%d",&YY);
if (YY%4==0&&YY%100!=0||YY%400==0)
printf("February %d has 29 days.\n",YY);
else
printf("February %d has 28 days.\n",YY);
return 0;
}