Task: Program Execution
Input (English): 5877, N, 1925, 845, 8303, 7453, A, D, F, 8949, F, L, 3079, f, D
Output (English): 1, 3, 4, 5, 6, 10, 13