Task: Program Execution
Input (English): Z, 6245, N, 1403, b
Output (English): 7648