#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <algorithm>
#include <functional>
#include <cstring>
#include <queue>
#include <stack>
#include <math.h>
#include <iterator>
#include <vector>
#include <string>
#include <set>
#include <math.h>
#include <iostream>
using namespace std;
int main(){
	int n;
	int dp[5][51] = {};
	for (int i = 0;i < 10;++i) dp[1][i] = 1;
	for (int i = 2;i < 5;++i) {
		for (int q = 0;q <= 9;++q) {
			for (int p = 0;p <= 9 * i;++p) {
				dp[i][p + q] += dp[i - 1][p];
			}
		}
	}
	while (cin >> n) {
		printf("%d\n", dp[4][n]);
	}
}
