Task: Program Execution
Input (English): n, 2787, 645, 7459, 3671, J, 1545, b, H, s, k, 2125, B, 1091, 5387, T, r, 7005, 8459
Output (English): 14, 2787, 645, 7459, 3671, 10, 1545, 2, 8, 19, 11, 2125, 2, 1091, 5387, 20, 18, 7005, 8459