Task: Program Execution
Input (English): 3, 11, ['9531', 'X', '3373', 'h', '7665', '5781', 'h', '5653', 'L', '6857', 'F', 'p']
Output (English): 29329