#include <cstdio>
#include <iostream>

using namespace std;

int main() {
	int n;
	while (scanf("%d", &n) != EOF) {
		if (n > 36) printf ("0\n");
		else {
			int tmp;
			int ans = 0;
			for (int i=0; i<10; ++i) {
				for (int j=0; j<10; ++j) {
					for (int k=0; k<10; ++k) {
						tmp = n - i - j - k;	
						if (tmp >= 0 && tmp < 10) ++ans;
					}
				}
			}
			printf ("%d\n", ans);
		}
	}
	return 0;
}