#include <stdio.h>

int main( void ){
    int nCount = 0,input;
    scanf( "%d",&input );

    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++ )
                    if( i+j+k+l == input ) nCount++;

    printf( "%d\n",nCount );
    return 0;
} 