#include <bits/stdc++.h>
using namespace std;
int ans[20];
int main() {
  ans[1] = 4, ans[2] = 10, ans[3] = 20, ans[4] = 35, ans[5] = 56, ans[6] = 83;
  ans[7] = 116, ans[8] = 155, ans[9] = 198, ans[10] = 244, ans[11] = 292;
  ans[12] = 341, ans[13] = 390;
  int n;
  cin >> n;
  long long la = 0;
  if (n <= 13)
    la = ans[n];
  else {
    la = 1ll * 49 * n - 247;
  }
  cout << la;
  return 0;
}
