Task: Program Execution
Input (English): 4, 20, ['a', 'K', '3873', 'l', 'g', 'f', 'h', '1119', 'Q', '8921', 'A', '47', '7717', 'U', '2581', 'X', '3955', '9367', '8341', '5177', '1673', 'k', '6765', 's', '8361', 'S', 'k']
Output (English): 5177834193673955X2581U771747A8921Q1119hfgl