Task: Program Execution
Input (English): 185, m, f, 471, 485, f, x, n
Output (English): 1, 4, 5, 7, 8