Task: Program Execution
Input (English): 2987, k, Z, Z, 2231, 9129, C, q, 1777, m, G, 4773, X, 4643, n
Output (English): 2987, 11, 26, 26, 2231, 9129, 3, 17, 1777, 13, 7, 4773, 24, 4643, 14