Task: Program Execution
Input (English): Y, P, 6739, 4413, 9781, 9797, m, R, N, 9091, 8775, 9875, s, b, 5033, 6369, z, 3917, s, 1403, 8767, Y, 7857
Output (English): 1, 2, 7, 8, 9, 13, 14, 17, 19, 22