Task: Program Execution
Input (English): 6, 10, ['5821', '4863', 'G', '2491', '5923', '4797', 'S', 'n', '2459', 'b', '1375', '1159', '3045', 'k', 'm', '165', '9013', '4747']
Output (English): b2459nS4797