Task: Program Execution
Input (English): 3817, 8489, M, 1507, 7147, e, 661, 5835
Output (English): 1, 2, 4, 5, 7, 8