#include<bits/stdc++.h> using namespace std; int main(){ long long n; while(cin>>n){ cout<<23+(n-1)*3*5*7<<endl; } }
Double click to view unformatted code.