Task: Program Execution
Input (English): L, X, v, W, 699, K, 3157, 6783, D
Output (English): 5, 7, 8