#include <bits/stdc++.h>   using namespace std;   int c[1005];   int a[12] = {0, 4, 10, 20, 35, 56, 83, 116, 155, 198, 244, 292};   int main() {     long long n;     while (cin >> n) {       if (n <= 11) {         cout << a[n] << endl;       } else {         long long m;         m = a[11] + (n - 11) * 49;         cout << m << endl;       }     }     return 0;   }   