#include using namespace std; int main() { int ans = 0; for(int i = 1; i < 13; i++){ for(int j = 1; j < 32; j++){ if(i == 4 && j == 31) continue; int k = j, sum = 0; while(k > 0){ sum += k % 10; k /= 10; } if(sum == i) ans++; } } cout << ans << endl; }