Task: Program Execution
Input (English): 4543, Q, x, 6831, x, d
Output (English): 4