# 2020 USACO February Bronze

# Swapity Swap

Farmer John's **n** cows are standing in a line. The **i**-th cow from the left has label **i** (**1** ≤ **i** ≤ **n**). Farmer John has come up with a new morning exercise routine for the cows. He tells them to repeat the following two-step process exactly **k** times:

- The sequence of cows currently in positions
`a`

. . ._{1}`a`

from the left reverse their order. Then, the sequence of cows currently in positions_{2}`b`

. . ._{1}`b`

from the left reverse their order._{2}

After the cows have repeated this process exactly **k** times, output the label of the **i**-th cow from the left for each **i** (**1** ≤ **i** ≤ **n**).

#### Input

The first line of contains **n** (**1** ≤ **n** ≤ **100**) and **k** (**1** ≤ **k** ≤ `10`

). The second line contains ^{9}`a`

and _{1}`a`

(_{2}**1** ≤ `a`

< _{1}`a`

≤ _{2}**n**), and the third contains `b`

and _{1}`b`

(_{2}**1** ≤ `b`

< _{1}`b`

≤ _{2}**n**).

#### Output

On the **i**-th line of output, print the label of the **i**-th cow from the left at the end of the exercise routine.

#### Hint

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.

7 2 2 5 3 7

1 2 4 3 5 7 6