Task: Program Execution
Input (English): R, 3307, 1957, 3653, 5245, 7347, t, X, 2641, j, 581, P
Output (English): R, t, X, j, P