Task: Program Execution
Input (English): L, A, 3187, f, 4335, 2245, Z
Output (English): 1, 2, 4, 7