Task: Program Execution
Input (English): 3251, Y, 4063, 2409, 3955, 8599, 2457, 9961
Output (English): 7