Task: Program Execution
Input (English): N, O, K, 3403, 1813, T, 7725, 7569, 2729
Output (English): 1, 2, 3, 6