Task: Program Execution
Input (English): p, S, 1071, t, g, x, 1701, 3229, 371, 5019, 8833, V
Output (English): 16, 19, 1071, 20, 7, 24, 1701, 3229, 371, 5019, 8833, 22