#include <cstdio>
#define F(i)for(int i=0;i<=9;i++)
int main() {
	int n;
	while(scanf("%d",&n)!=EOF) {
		int count=0;
		F(i)F(j)F(k)F(l) {
			if((i+j+k+l)==n) count++;
		}
		printf("%d\n",count);
	}
}