#include <iostream>

using namespace std;

int main() {
  int n;
  while (cin >> n) {
    int i, j, k, l, r = 0;
    for (i = 0; i < 10; i++)
      for (j = 0; j < 10; j++)
        for (k = 0; k < 10; k++)
          for (l = 0; l < 10; l++)
            if (i + j + k + l == n) r++;
    cout << r << endl;
  }
  return 0;
}