Task: Program Execution
Input (English): 9, 9, ['F', '9525', '9361', 'n', '6447', '6561', '6057', '9793', '5635', 'X']
Output (English): 5635