Task: Program Execution
Input (English): 1, 5, ['J', 'L', '1223', 'k', 'H', '2787']
Output (English): Hk3221LJ