#include <bits/stdc++.h>
int s[12] = {1, 4, 10, 20, 35, 56, 83, 116, 155, 198, 244, 292};
int main() {
  int n;
  scanf("%d", &n);
  if (n <= 11) {
    printf("%d", s[n]);
  } else {
    long long ans = 1ll * (n - 11) * 49 + 1ll * 292;
    printf("%lld", ans);
  }
  return 0;
}
