Task: Program Execution
Input (English): 15, 15, ['i', 'P', 'b', '1317', '6147', 'i', '7871', '9445', 'N', 'h', '8195', 'n', '2469', 'H', '9781']
Output (English): 9781