Task: Program Execution
Input (English): B, n, D, 4625, M, 4047, K, 1883, A, h, e, D, d, 8467, 3597, 2519, 6955, k
Output (English): 4, 6, 8, 14, 15, 16, 17