Task: Program Execution
Input (English): Y, 4807, M, 2893, 25, c, 9539, r, 3297, m, h, 5833, n, w, 4099, T, 4047, 1779, 531, 8499, v
Output (English): 1, 3, 6, 8, 10, 11, 13, 14, 16, 21