#include <iostream>
#include <cstdio>
using namespace std;
#define REP0(i,n) for(int i=0;i<n;++i)
#define REP1(i,n) for(int i=1;i<=n;++i)
#define ALL(c) (c).begin(),(c).end()
int main(){
	int n;
	while(scanf("%d",&n)!=EOF){
		int ans=0;
		REP0(a,10) REP0(b,10) REP0(c,10) REP0(d,10) if(a+b+c+d==n) ans++;
		printf("%d\n",ans);
	}
	return 0;
}