#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  int m[30] = {0,   4,   10,  20,  35,  56,  83, 116,
               155, 198, 244, 292, 341, 390, 439};
  cout << (n <= 11 ? m[n] : (long long)(n - 11) * 49 + 292);
}
