Task: Program Execution
Input (English): i, 271, i, 177, 237, m, x
Output (English): 1, 2, 3, 7