Task: Program Execution
Input (English): 4, 10, ['3291', '31', 'J', '251', 'B', '367', '1049', 'o', 'E', '6315', '2645', '397', 'V', 'N', 't', 'y', '5849']
Output (English): 251B3671049oE6315