#include <stdio.h> #include<math.h> #include<string.h> int main() { long long int k; while(scanf("%lld",&k)!=EOF) { printf("%lld\n",23+3*5*7*(k-1)); } return 0; }
Double click to view unformatted code.