Task: Program Execution
Input (English): Y, X, 3901, 1135, Y, 6779, 4639, p, n, M, 8019
Output (English): 1, 2, 5, 8, 9, 10