#include<iostream>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);++i)
int main(){
	int n,ans;
	while(cin>>n){
		ans=0;
		rep(a,10)rep(b,10)rep(c,10)rep(d,10)
			if(a+b+c+d==n)ans++;
		cout<<ans<<endl;
	}
	return 0;
}