Task: Program Execution
Input (English): P, 7745, s, 8901, X, 5267, 3321, 1015, 4723, L, 5941
Output (English): 36913