#include<stdio.h>
int Printdate(int year,int month,int day)
{if((year%4==0&&year%100!=0)||(year%400==0))
{
if(month==1||month==3||month==5||month==7||month==8||month==10||month==12)
day=31;
if(month==2)
day=29;
if(month==4||month==6||month==9||month==11)
day=30;
}
else
{
if(month==1||month==3||month==5||month==7||month==8||month==10||month==12)