Task: Program Execution
Input (English): 5, 5, ['o', 'n', '4367', '5811', '5365', 'Q', 'o', 'c', '3633', 'y', 'W', '1583']
Output (English): 5365