Task: Program Execution
Input (English): 3505, 7339, 6367, 2603, U, 5503, 741, 6627
Output (English): 7