Task: Program Execution
Input (English): 5805, X, c, K, T, 6617, n, y, D, 1817, 1965, x, m, 185, 4029, 6483, U, 6109, 5397, q
Output (English): 5805, 24, 3, 11, 20, 6617, 14, 25, 4, 1817, 1965, 24, 13, 185, 4029, 6483, 21, 6109, 5397, 17