Task: Program Execution
Input (English): L, F, 5797, X, J, H, 543, 5687, h
Output (English): 3, 7, 8