Task: Program Execution
Input (English): Y, Y, p, 8749, 1653, f, m, 3677, w, 8117, X, Q, 2921, 6637, 9181
Output (English): 25, 25, 16, 8749, 1653, 6, 13, 3677, 23, 8117, 24, 17, 2921, 6637, 9181