#include using namespace std; int day[] = { -1, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; signed main(){ int ans = 0; for( int i = 1; i <= 12; ++i ) for( int j = 1; j <= day[ i ]; ++j ) ans += i == ( j < 10 ? j : j / 10 + j % 10 ); cout << ans << endl; return 0; }