Task: Program Execution
Input (English): 4, 6, ['p', '3847', 'N', '57', 'x', '7381', '8863', 'H']
Output (English): 7438