#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include <functional>
#include <iomanip>
using namespace std;

#define ll long long int

#define rep(p,q) for(int i = p; i < q;i++)


//8
int main(void) {
	int n;
	while (cin >> n) {
		if (n > 36) cout << 0 << endl;
		else {
			int ans = 0;
			for (int i = 0; i < 10; i++) {
				int sum = i;
				for (int j = 0; j < 10; j++) {
					sum = i;
					sum += j;
					if (sum > n)continue;
					for (int k = 0; k < 10; k++) {
						sum = i + j;
						sum += k;
						if (sum > n)continue;
						for (int l = 0; l < 10; l++) {
							sum = i + j + k;
							sum += l;
							if (sum == n) ans++;
						}
					}
				}
			}
			cout << ans << endl;
		}
	}
}
