Task: Program Execution
Input (English): 4729, 9999, G, B, M, k, 6223, d
Output (English): 4729, 9999, 7, 2, 13, 11, 6223, 4