Task: Program Execution
Input (English): s, M, k, P, G, Y, 3209, n, 8049, V
Output (English): 19, 13, 11, 16, 7, 25, 3209, 14, 8049, 22