#include using namespace std; #define REP(i,n) for(int i=0; i<(int)(n); i++) int d[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int main() { ios_base::sync_with_stdio(0); cin.tie(0); int ret = 0; for (int y = 1; y <= 31; y++) { int x = y / 10 + y % 10; if (x <= 12 && y <= d[x]) ++ret; } cout << ret << endl; return 0; }