#include using namespace std; int main() { cin.tie(0); ios_base::sync_with_stdio(0); int m[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; int ans = 0; for (int i = 1; i <= 12; i++) { for (int j = 1; j <= m[i - 1]; j++) { if (i == j / 10 + j % 10) { ans++; } } } cout << ans << '\n'; return 0; }