#include<iostream> using namespace std; int main() { //中国余数定理 long long k; while(cin>>k){ cout<<(3*5*7)*(k-1)+23<<endl; } }
Double click to view unformatted code.