#include using namespace std; int main(void) { vector num = {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}; int ans = 0; for (int i = 1; i <= 12; i++) { for (int j = 0; j < num.size(); j++) { if (j >= 29 && i == 2) break; if (j >= 31 && i == 4 || j >= 31 && i == 6 || j >= 31 && i == 9 || j >= 31 && i == 11) break; if (i == num[j]) { ans++; } } } cout << ans << endl; return 0; }