Task: Program Execution
Input (English): 3477, 7159, Q, 1073, X, 4407, 693, 5765, o, 361
Output (English): 22935