Task: Program Execution
Input (English): 3, 5, ['3851', '5251', '4397', '4165', '7343', 'A', '5977']
Output (English): 734341654397