#include using namespace std; int main() { int n; int page = 0; //1,000,000,000 cin >> n; page = 316 + n * 52; cout << page << endl; return 0; }