Public Order Committee#3127

Public Order Committee

1 second
32 megabytes
Very easy

The Public Order Committee must be legislatively represented in the Parliament of the Democratic Republic of Byteland. Unfortunately, some deputies do not get along with others.

The Committee must satisfy the following conditions:

Each party has exactly two deputies in Parliament. All deputies are numbered from to . Deputies numbered 2i-1 and belong to the -th party.

Write a program which:

Input

The first line contains two non-negative integers and : the number of parties (1 \leq n \leq 8000) and the number of pairs (0 \leq m \leq 20000) of deputies who do not like each other. Each of the next lines contains two integers and , 1 \leq a < b \leq 2n, separated by a single space. This means deputies and do not like each other.

The input contains multiple test cases. Process input until the end of file.

Output

If it is not possible to form the Committee, print the single word NIE (which means NO in Polish). Otherwise, print integers from to in increasing order, indicating the numbers of deputies forming the Committee. Print each on a separate line. If there are several ways to form the Committee, output the lexicographically smallest sequence.

Examples

Example 1

Loading
Loading