Task: Program Execution
Input (English): r, 83, T, 8395, J, 7165, 4533, d, 399, J
Output (English): 83, 8395, 7165, 4533, 399