Task: Program Execution
Input (English): 6585, j, 5263, 5659, 7513, U, R
Output (English): 2, 6, 7