Task: Program Execution
Input (English): d, 7727, b, j, m, a, 1889, a, 723, U, p, 1921, r, 7117
Output (English): 5