#include <stdio.h>

int ans[55] = { 0 } ;

void init ( ) ;

int main ( )
{
	int s ;
	init ( ) ;
	while ( scanf ( "%d" , &s ) == 1 ) {
		printf ( "%d\n" , ans[s] ) ;
	}
	return 0 ;
}

void init ( )
{
	for ( int i = 0 ; i <= 9 ; i++ ) {
		for ( int j = 0 ; j <= 9 ; j++ ) {
			for ( int k = 0 ; k <= 9 ; k++ ) {
				for ( int l = 0 ; l <= 9 ; l++ ) {
					ans[i+j+k+l]++ ;
				}
			}
		}
	}
}