Task: Program Execution
Input (English): 9825, 1463, O, 1705, x, X, T, h, O, p, 367, 5979
Output (English): 9825, 1463, 15, 1705, 24, 24, 20, 8, 15, 16, 367, 5979