Task: Program Execution
Input (English): 8079, M, R, 3025, 8815, A, K, A, d, 1997, 197, T, N, g, 4387, 589
Output (English): 1, 4, 5, 10, 11, 15, 16