Task: Program Execution
Input (English): y, b, U, 7787, 1851, 3765, T
Output (English): 13403