Task: Program Execution
Input (English): n, d, 1965, C, 4261, B, 7147, 299, V, 5783, 1923, V, Z, 6649, j
Output (English): 14, 4, 1965, 3, 4261, 2, 7147, 299, 22, 5783, 1923, 22, 26, 6649, 10