#include using namespace std; typedef long long LL; int main(int argc, char* argv[]) { LL N; cin>>N; cout<<316+(N-1)*52<