Task: Program Execution
Input (English): K, a, 5233, 221, N, 797, l
Output (English): 6251