The first line contains N, M, and K. For each 1≤i≤M, line i+1 line contains Li and Ri, both integers in the range 1…N, where Li<Ri.
On the ith line of output, print the ith element of the array after the instruction string has been executed K times.
Initially, the order of the cows is [1,2,3,4,5,6,7] from left to right. After the first step of the process, the order is [1,5,4,3,2,6,7]. After the second step of the process, the order is [1,5,7,6,2,3,4]. Repeating both steps a second time yields the output of the sample.
Test case 2 satisfies N=K=100.
Test cases 3-5 satisfy K≤103.
Test cases 6-10 satisfy no additional constraints.