Task: Program Execution
Input (English): 6895, Q, 7337, 293, X, B, O
Output (English): 1, 3, 4