Task: Program Execution
Input (English): L, 9747, 1671, 1925, Z
Output (English): 2, 3, 4