Task: Program Execution
Input (English): 3771, R, u, 2877, l, l, l, P, 3701, 9729, A, X, 8821
Output (English): 8