#include<stdio.h>

int main(){

int num,i,j,a,b,c,d;
int date[51]={0};


for(i=0;i<=9999;i++){
	
	a=i/1000;
	b=i%1000/100;
	c=i%100/10;
	d=i%10;
	date[a+b+c+d]++;

}


while(scanf("%d",&num)!=EOF){



printf("%d\n",date[num]);
}
return 0;
}