Task: Program Execution
Input (English): 3631, 9163, 5743, 2215, W, G, Q, 677
Output (English): 5, 6, 7