Task: Program Execution
Input (English): 5247, 1091, 4919, p, Y, S, 379, Z, 3017, K, 4063, d, 4045, 2453, 8073, K, p
Output (English): 4, 5, 6, 8, 10, 12, 16, 17