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