Task: Program Execution
Input (English): y, S, 657, M, V, 649, K, x, 5621, 8951, y, 4467, d, 3181, E, 6601, 7247, Q, K, C, 3049, l, r
Output (English): 3, 6, 9, 10, 12, 14, 16, 17, 21