Football#1458

Football

1 second
64 megabytes
Very easy

At the World Cup, a new method for greeting teams has been introduced. Teams line up in a row; the team captains stand next to each other, with their teams positioned on either side of their respective captains. The captains step forward, greet each other, and then move to the opposite ends of their teams. Sometimes, a referee may stand between the captains, but this does not affect the greeting procedure. Write a program that outputs the arrangement of people on the field after the captains have greeted each other.

Input

Each person on the field is identified by a number on their jersey. For simplicity, assume that the referee also has a number on their jersey. First, input the number of people (1 \leq n \leq 200) on the field. Next, input numbers — the jersey numbers (which are natural numbers not exceeding ) of the people on the field.

Output

Output numbers — the jersey numbers of the people who remain on the field after the captains have greeted each other.

Examples

Example 1

Loading
Loading

Note

  • In the first example, the referee has jersey number . The captains next to the referee have jersey numbers and . They shake hands, and then one stands at the beginning of the row, and the other at the end.

  • In the second example, there is no referee. The captains have jersey numbers and . After greeting, they also move to opposite ends of the row.