#include <iostream>
using namespace std;

int main(void)
{
  int n;
  int counter;
  int a, b, c, d;
  while(cin>>n){
    counter = 0;
    for(a = 1; a <= 9; a++){
      for(b = 1; b <= 9; b++){
	for(c = 1; c <= 9; c++){
	  for(d = 1; c <= 9; d++){
	    if(a+b+c+d==n){
	      counter ++;
	    }
	  }
	}
      }
    }
    cout << counter << endl;
  }
	      

  return 0;
}