Task: Program Execution
Input (English): 6, 10, ['1387', '3869', '3555', 's', '9835', '9651', 'O', '7245', 'D', '7909', '6743', 'R', '953', '275', 'n', 'A']
Output (English): 9651O7245D7909