#include using namespace std; static void setup() { cin.tie(0); ios::sync_with_stdio(false); } static void run() { static int kDays[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, }; auto n = 0; for (auto m = 1; m <= 11; ++m) { // 12月は無理 for (auto l = 0; l <= 3; ++l) { auto r = m - l; if (r >= 0 && r < 10 && (l * 10 + r <= kDays[m - 1])) { n += 1; } } } cout << n << endl; } int main(int argc, char **argv) { setup(); run(); return 0; }