Task: Program Execution
Input (English): Y, 5207, 1841, 455, 9367
Output (English): 1