Task: Program Execution
Input (English): 5, 5, ['1775', '9975', '1609', 'X', 'X', '2971', 'G', '1407', '8057', 'a']
Output (English): X