Task: Program Execution
Input (English): 7, 4121, h, J, k, 2483, 611, H, E, 2051, n, 3915, 2689, 5833
Output (English): 8