Task: Program Execution
Input (English): Y, s, 561, p, 9509, X, W, 2247, 4705, 9153, F, P, 2459
Output (English): 25, 19, 561, 16, 9509, 24, 23, 2247, 4705, 9153, 6, 16, 2459