#include <bits/stdc++.h>
using namespace std;
const int MAX = 1e5 + 7;
long long N, M, x, y;
const int INF = 0x3f3f3f3f;
long long b[] = {1, 5, 10, 50};
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long dp[20] = {0,   4,   10,  20,  35,  56,  83,  116, 155, 198,
                      244, 292, 341, 390, 439, 488, 537, 586, 635, 684};
  while (cin >> N) {
    if (N <= 15)
      cout << dp[N] << endl;
    else {
      cout << 49 * (N - 15) + dp[15] << endl;
    }
  }
  return 0;
}
