Task: Program Execution
Input (English): 5851, 8883, 7577, 951, 8947, X, u, 8959, 9171, 7785, 1727, 5397, 3431, b, 2857, n, H, 3759
Output (English): 5851, 8883, 7577, 951, 8947, 24, 21, 8959, 9171, 7785, 1727, 5397, 3431, 2, 2857, 14, 8, 3759