include [HTML_REMOVED]
include [HTML_REMOVED]
include [HTML_REMOVED]
using namespace std;
int Data,Month,Year,Day;
bool LeadYear(int Year);
void GetPriorDay(int Day);
int main(){
bool Test;
cin >> Year >> Month;
Test = LeadYear(Year);
if(Test == true && Month == 2)
Day = 29;
if(Test == false && Month == 2)
Day = 28;
switch(Month){
case 1: case 3: case 5: case 7: case 8: case 10: case 12: Day = 31;
case 4: case 6: case 9: case 11: Day = 30;
}
//GetPriorDay(Day);
cout << “Year = ” << Year << ” Month = ” << Month << ” Day = ” << Day << endl;
return 0;
}
bool LeadYear(int Year){
if(Year%4 == 0 && Year%100!=0)
return true;
return false;
}
/*void GetPriorDay(int Day){
if()
//cout << "Year=" << Year << "Month=" << Month << "Day=" << Day <<endl;
}*/