//Normal #define _GLIBCXX_DEBUG #define ll long long #include using namespace std; using Graph = vector>; void print(auto a){ cout << a; } void prints(auto a){ cout << a << " "; } void prints(){ cout << " "; } void printl(auto a){ cout << a << endl; } void printl(){ cout << endl; } void fix(int n){ cout << fixed << setprecision(n); } int siz(string s){ return (int)s.size(); } int main(){ vector M = {0, 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]; j++){ int k = j, sum = 0; while(k > 0){ sum += k%10; k /= 10; } if(i == sum) ans++; } } printl(ans); return 0; }