#include "bits/stdc++.h" using namespace std; #define print(x) cout< PI; typedef pair V; typedef vector VE; const ll mod = 100000000000; using namespace std; int main() { ll n=0; cin>>n; cout<<316+52*(n-1)<