#include using namespace std; int main() { long long N; cin >> N; cout << 52 * N + 264 << endl; }