#include <iostream>
using namespace std;
int main()
{
int number, months[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
cout << "Input number of the month: ";
cin >> number;
if ((number >= 1) && (number <= 12)) {
cout << "Number of days is " << months[number - 1];
}
else {
cout << "Input error!";
return 1;
}
return 0;
}