Task: Program Execution
Input (English): 9527, P, z, 4359, X, 7773, 6771, 1897, 31
Output (English): 30358