Task: Program Execution
Input (English): E, 9427, 7161, m, q, 4757
Output (English): 1, 4, 5