Task: Program Execution
Input (English): Z, 4053, 7321, 6247, P, X, 145, 5241, T, 2003, m
Output (English): 25010