Task: Program Execution
Input (English): 3, 5, ['J', '6937', '3709', 'L', '397', '2771', '4005', '473', 'N', 'g', '3107', 'z']
Output (English): 3709L397