Task: Program Execution
Input (English): d, 147, 213, e, 251, 77, m, x
Output (English): 1, 2, 3, 4, 5, 7