Task: Program Execution
Input (English): U, P, 1595, 9935, 8445, 8137, B, 9773, 3475, 5207, 2637, 9883, 9845, 3529, U, u, F, 4775
Output (English): 21, 16, 1595, 9935, 8445, 8137, 2, 9773, 3475, 5207, 2637, 9883, 9845, 3529, 21, 21, 6, 4775