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