Task: Program Execution
Input (English): 3, 7, ['5227', 'Q', 'x', 'Q', 'r', '5795', 'p']
Output (English): 5795