#include <iostream>
#include <string>
#include <utility>
#include <algorithm>
#include <queue>
#include <map>
#include <fstream>
#include <array>
#include <utility>
#include <functional>

using namespace std;
typedef long long Int;
#define REP(i , x) for(int i = 0 ; i < x ; ++i)

typedef pair<int, int> P;



int main()
{
	int N;
	while (cin >> N){
		Int ans(0);
		REP(i, 10){
			REP(j, 10){
				REP(m, 10){
					REP(n, 10){
						ans += N == (i + j + m + n);
					}
				}
			}
		}
		cout << ans;
	}
}