Task: Program Execution
Input (English): A, k, 1307, 7941, c, B, 1815, l, r, 1665, e, F
Output (English): 12728