Task: Program Execution
Input (English): 9849, n, 8271, Q, 7585, 7133
Output (English): n, Q