Task: Program Execution
Input (English): 8581, A, 387, d, 9499, 6227, k, 9043, 1171, B, b, R, C, 47, 3173, U
Output (English): 8581, 387, 9499, 6227, 9043, 1171, 47, 3173