Task: Program Execution
Input (English): i, X, Y, 6001, s, 3151, T, j, 8557, 9607, 2703, 5787, 7601
Output (English): 6