Task: Program Execution
Input (English): a, b, j, 1173, e, 2793, p, 2849, 799, 4639, y, 5895, 1523, 7719, U, D, 1535, 9949
Output (English): 8