Task: Program Execution
Input (English): 2, 5, ['8381', '831', 'N', 'H', 'd']
Output (English): 831NHd