Task: Program Execution
Input (English): n, 7877, i, 6691, 9233, 8367, 4137, q, n, v, t, z, c, a, R, m, 5667, 3581, W, 5073, M, 4165
Output (English): 14, 7877, 9, 6691, 9233, 8367, 4137, 17, 14, 22, 20, 26, 3, 1, 18, 13, 5667, 3581, 23, 5073, 13, 4165