#include <bits/stdc++.h>
using namespace std;
const int MAXN = 9e4;
const int INF = 1 << 30;
const long long mod = 1e9 + 7;
const double eps = 1e-8;
int main() {
  long long a[100] = {0,   4,   10,  20,  35,  56,  83, 116,
                      155, 198, 244, 292, 341, 390, 439};
  long long n;
  while (cin >> n)
    if (n <= 14)
      cout << a[n] << endl;
    else
      cout << a[14] + (long long)49 * (n - 14) << endl;
}
