#include #define rep(i,l,n) for(int i=l;i vi; typedef vector vvi; typedef pair pii; int main(){ ll n,ans; cin>>n; ans=316+(n-1)*52; o(ans); }