#include using namespace std; int main(void) { int ans = 0; vector day = {1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 3, 4}; for (int i = 1; i <= 12; i++) { for (int j = 0; j < day.size(); j++) { if (i == 2 && j >= 29) break; if (i == 4 && j>=30 || i == 6 && j>=30 || i == 9 && j>=30 || i == 11 && j >= 30) break; if (i == day[j]) ans++; } } cout << ans << endl; return 0; }