Task: Program Execution
Input (English): 8041, 7057, M, x, 7171, 1613, 4123, E, 8637, G, 7423, s, 3045, A, 1429, 3653, M, 7373, S, S, 5031
Output (English): 1, 2, 5, 6, 7, 9, 11, 13, 15, 16, 18, 21