#include <bits/stdc++.h>
using namespace std;
const int N = 100005;
int dr8[] = {0, 0, 1, -1, 1, 1, -1, -1};
int dc8[] = {1, -1, 0, 0, -1, 1, -1, 1};
int dr4[] = {0, 1, -1, 0};
int dc4[] = {1, 0, 0, -1};
int n;
int li[] = {4, 10, 20, 35, 56, 83, 116, 155, 198, 244, 292};
int main() {
  scanf("%d", &n);
  if (n < 11) {
    printf("%d\n", li[n - 1]);
  } else {
    printf("%lld\n", li[10] + (n - 11) * ((long long)49));
  }
  return 0;
}
