#include <bits/stdc++.h>
using namespace std;
const int maxn = (int)3e5 + 10;
const int inf = 0x3f3f3f3f;
const long long INF = 0x3f3f3f3f3f3f3f3f;
int n, ans, pre, t[100] = {0, 4, 10, 20, 35, 56, 83, 116, 155, 198, 244, 292};
bool b[maxn];
int main() {
  cin >> n;
  if (n <= 11)
    cout << t[n] << endl;
  else {
    cout << (t[11] + (n - 11) * 1ll * 49) << endl;
  }
}
