Task: Program Execution
Input (English): R, 7947, 7717, J, 2849, j, K, z, 1071, 9827
Output (English): 29411