#include <algorithm>
#include <iostream>
#include <vector>

namespace {

template <class T>
int combination(std::vector<T> data)
{
  int n = 1;
  while (std::next_permutation(data.begin(), data.end())) {
    ++n;
  }
  return n;
}

int calc(int n)
{
  int com = 0;
  int a, b, c, d;

  for (a = 0; a <= 9; ++a) {
    for (b = a; b <= 9; ++b) {
      for (c = b; c <= 9; ++c) {
        for (d = c; d <= 9; ++d) {
          const int sum = a + b + c + d;

          if (sum == n) {
            std::vector<int> v{a, b, c, d};
            com += combination(v);
          }
          else if (sum > n) {
            return com;
          }
        }
      }
    }
  }

  return com;
}

} // unnamed namespace

int main()
{
  int n;
  while (std::cin >> n) {
    std::cout << calc(n) << std::endl;
  }

  return 0;
}