Task: Program Execution
Input (English): 1981, P, 7805, 7171, m, 8107, D, Q, 3855, 1393, Q, 1599, 3441, 8701, 5233, 5387, A, o, j, o
Output (English): 1981, 16, 7805, 7171, 13, 8107, 4, 17, 3855, 1393, 17, 1599, 3441, 8701, 5233, 5387, 1, 15, 10, 15