#include <stdio.h>

int main() {
  
  int n, pattern;
  int i, j, k, l;
  
  while(1) {
    pattern = 0;
    if (scanf("%d", &n) == EOF) break;
    for (i = 0; i <= 9; i++) {
      for (j = 0; j <= 9; j++) {
        for (k = 0; k <= 9; k++) {
          for (l = 0; l <= 9; l++) {
            if (i + j + k + l == n) {
              pattern++;
              //printf("%d + %d + %d + %d = %d\n", i, j, k, l, n);
            }
          } 
        }
      } 
    }
    
    printf("%d\n", pattern);
  }
  return 0;
}