Task: Program Execution
Input (English): 5, 8, ['h', 'K', 'J', '5271', '957', '4719', 'N', 'B']
Output (English): BN9174759