Party

No attempts yetTime limit3sMemory limit128 MB

Problem

Byteasar intends to throw a party. Naturally, he would like it to be a success. He is quite certain that it will be a success as long as every invited guest knows one another. Right now he is trying to put together a list of the friends he would like to invite.

Byteasar has nn friends, and nn is divisible by 33. Luckily, most of his friends know one another. He also recalls that he once attended a party with 23n\frac{2}{3}n of his friends where everyone knew everyone else. Unfortunately, he does not remember much else about that party; in particular, he has no idea which of his friends were there.

Byteasar does not feel obliged to throw a huge party, but he would like to invite at least n3\frac{n}{3} of his friends. He has no idea how to pick them, so he asks you for help: find n3\frac{n}{3} friends who all know one another.

Input

The first line of the standard input contains two integers nn and mm, separated by a single space (3n30003 \le n \le 3\,000, 23n(23n1)2mn(n1)2\frac{\frac{2}{3}n\left(\frac{2}{3}n-1\right)}{2} \le m \le \frac{n(n-1)}{2}, and nn is divisible by 33). They denote the number of Byteasar's friends and the number of pairs of his friends who know each other, respectively. The friends are numbered from 11 to nn.

Each of the following mm lines contains two integers separated by a single space. The numbers aia_i and bib_i (1ai<bin1 \le a_i < b_i \le n) on line i+1i+1 (for i=1,2,,mi=1,2,\dots,m) mean that persons aia_i and bib_i know each other. Every pair appears at most once in the input.

Output

Many different groups may satisfy the requirement, so build the guest list with the following deterministic procedure to make the answer unique.

Start with an empty guest list. Consider the friends one by one, from friend 11 to friend nn. When you consider friend vv:

  • if friend vv already knows everyone currently on the guest list, add vv to the list;
  • otherwise, remove from the list the lowest-numbered person who does not know vv, and do not add vv.

After all nn friends have been considered, everyone remaining on the guest list knows everyone else, and at least n3\frac{n}{3} people remain. Print, on a single line in increasing order and separated by single spaces, the n3\frac{n}{3} lowest-numbered people on the final guest list.

Hint

In the example graph, friends 1,3,4,51, 3, 4, 5 all know one another. Applying the procedure above from friend 11 onward leaves {3,4}\{3, 4\} on the final guest list, so the output is 3 4.