Task: Program Execution
Input (English): 8407, 4207, 1095, S, n, z, 2909, 9457, G, k, E, k, p, a, q, 1327, 5943
Output (English): 8407, 4207, 1095, 19, 14, 26, 2909, 9457, 7, 11, 5, 11, 16, 1, 17, 1327, 5943