Task: Program Execution
Input (English): K, M, 413, 6219, 787, 4783, G, x, s, 109, 8523, F, x
Output (English): 3, 4, 5, 6, 10, 11