Task: Program Execution
Input (English): 1, 4, ['R', 'R', 'h', 'K', '807']
Output (English): KhRR