Task: Program Execution
Input (English): 6411, 2963, j, 8521, Y, N, 9489, 9739, 4649, 9785, 9647, R
Output (English): 61204