#include <bits/stdc++.h>
using namespace std;
int a[] = {1, 5, 10, 50};
int ans[] = {0,   4,   10,  20,  35,  56,  83,  116,
             155, 198, 244, 292, 341, 390, 439, 488};
int main() {
  long long n;
  cin >> n;
  if (n <= 15)
    cout << ans[n] << '\n';
  else {
    long long res = ans[15];
    res += (n - 15) * 49;
    cout << res << '\n';
  }
  return 0;
}
