Task: Program Execution
Input (English): L, 8497, 7025, 441, K, 4217, 4001, 4435, l, h, L
Output (English): 28616