Task: Program Execution
Input (English): 6781, B, A, 185, 6579, H, 6185, C, 721, 2719, 2861, 2405, 1085, D
Output (English): 6781, 2, 1, 185, 6579, 8, 6185, 3, 721, 2719, 2861, 2405, 1085, 4