Task: Program Execution
Input (English): 7363, 6637, 1615, 8243, i, x, c, W, 1765, B, j, 2419, 9505, 3655, M, 5773, E
Output (English): 7363, 6637, 1615, 8243, 9, 24, 3, 23, 1765, 2, 10, 2419, 9505, 3655, 13, 5773, 5