#include "stdafx.h"
int main(int argc, char* argv[]) {
int year; printf("input the year:");
scanf("%d",&year);
if(year%4==0)
{
if(year%100!=0)
printf("29");
else
{
if(year%400==0)
printf("29");
else
printf("28");
}
}
else
printf("28");//year:2014,month:2,days:28
return 0;
}