Task: Program Execution
Input (English): n, 3721, 5891, H, 5547, w, 963, 1139, 519, 937, 1047, 1867, 7511, 6385, R, v, O
Output (English): 3721, 5891, 5547, 963, 1139, 519, 937, 1047, 1867, 7511, 6385