Task: Program Execution
Input (English): c, 977, N, q, K, 9157, 8957, 515, 7755, 1159, J, 8195
Output (English): 2, 6, 7, 8, 9, 10, 12