Task: Program Execution
Input (English): 2, 2, ['P', 'd', 'h']
Output (English): 0