Task: Program Execution
Input (English): Z, 4683, 3531, 2873, 637, 7139, 8819, 8425, 9201, x
Output (English): 8