#include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main(){ cin.tie(nullptr); ios_base::sync_with_stdio(false); vector day(12); day = {31,28,31,30,31,30,31,31,30,31,30,31}; int cnt = 0; for(int i = 1; i <= 12; i++){ for(int j = 1; j <= day[i]; j++){ int s,f; s = day[i]/10; f = day[i]%10; if(i == s+f) cnt++; } } cout << cnt << endl; return 0; }