#include<stdio.h>
int main(void){
   int a, b, c, d, n, key;
   while ( scanf("%d", &n) != EOF ) {
      key = 0;
      for ( a = 0; a <= n; a++) {
         for ( b = a + 1; b <= n; b++) {
            for ( c = b + 1; c <= n; c++ ) {
               for ( d = d + 1; d <= n; d++ ) {
                  if ( n == a + b + c + d ) key++;
               }
            }
         }
      }
      key = key * 26;

      for ( a = 0; a <= n; a++) {
         b = a;
            for ( c = b + 1; c <= n; c++ ) {
               for ( d = c + 1; d <= n; d++ ) {
                  if ( n == a + b + c + d ) key1++;
               }
            }
      }
      key1 = key1 * 6 * 6

      for ( a = 0; a <= n; a++) {
         b = a;
            c = b
               for ( d = c + 1; d <= n; d++ ) {
                  if ( n == a + b + c + d ) key++;
               }
      }
      key2 = key2 * 2 * 8

      for ( a = 0; a <= n; a++) {
         b = a;
            c = b;
               d = c;
                  if ( n == a + b + c + d ) key3++;
      }
      

      printf("%d\n", key + key1 + key2 + key3);
   }
   return 0;
}