Task: Program Execution
Input (English): e, Q, 5569, 3137, 7017, 6303, 945, 8903, m, 2969, u, 4385, M
Output (English): 1, 2, 9, 11, 13