#include <iostream>
#include <vector>

using namespace std;

int main(int argc, char *argv[]) {
  int n;
  vector<int> result;

  while (cin >> n) {
    if (n > 36 || n < 0) {
      result.push_back(0);
    } else {
      int tmp = 0;
      for (int i = 0; i < 10; i++)
        for (int j = 0; j < 10; j++)
          for (int k = 0; k < 10; k++)
            for (int l = 0; l < 10; l++)
              if (i + j + k + l == n)
                tmp++;
      result.push_back(tmp);
    }
  }
  for (int i = 0; i < result.size(); i++) 
    cout << result[i] << endl;
  return 0;
}
    