Task: Program Execution
Input (English): Y, c, n, 5199, 9649, R, l
Output (English): 1, 2, 3, 6, 7