Task: Program Execution
Input (English): f, 3183, I, m, q
Output (English): 1, 3, 4, 5