#include using namespace std; int main() { string S; int N; long gihon = 316; cin >> N; for (int i = 2; i <= N; i++) gihon += 52; cout << gihon << endl; return 0; }