#include <stdio.h>
int is_leap(int year)
{
int day;
if((year%4==0)&&(year%100!=0)||(year%400==0))
day = 366;
else
day =365;
return day;
}
int main(void)
{
int year;
printf("연도를 입력하시오:");
scanf("%d", &year);
printf("%d년은 %d일입니다.\n", year, is_leap(year));
return 0;
}