Task: Program Execution
Input (English): n, 7423, t, Q, 8273, f, 13, 1159, M
Output (English): 2, 5, 7, 8