Task: Program Execution
Input (English): 3, 5, ['X', '3761', '6531', 'o', '6843', '3997']
Output (English): 6843o6531