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