Task: Program Execution
Input (English): 2, 2, ['X', 'H', '7559', '7293', '517', 'p', 'z', '5407', '9759', '9167', 'H', '7909', '5005']
Output (English): H