Problem: Unfortunately, a mistake was found in the proof of the author's solution to this problem. Currently, we don't know the absolutely correct solution. However, you can solve this task, but if your solution passes all the tests, it is not guaranteed to be correct. If your solution has passed all the tests and you are sure that it is correct, you can write to one of the contest authors about it.

Surely you all read the book "Alice in Wonderland". In this task, Nastya got to the country of Three strange Bees. The bees are strange because their honeycombs are pentagonal. Nastya got there illegally, so she wants bees not to catch her. Help the bees punish the intruder! 

This is an interactive problem.

A beehive is a connected undirected graph where bees and Nastya can move along the edges. A graph satisfies two properties: 

  * The degree of any of its vertex is no more than 3. 
  * For each edge, there exists a cycle of length not greater than 5 passing through this edge. 

There are three bees and Nastya. You play for bees. Firstly, you choose the vertices where you put the bees. Then Nastya chooses another vertex in which she will initially appear. One move is first moving the bees, then Nastya, in turn: 
  1. For each of your bees, you can either move each one along some edge from the vertex they are currently staying or leave it in place. 
  2. Then Nastya will necessarily move along some edge of the graph from the vertex she is currently staying/. 



You win if at least one of the bees and Nastya are in the same vertex at any time of the game.

If this situation does not occur after n moves, then you lose.

Several bees can be in the same vertex.

Input

The first line contains two integers n (4 ≤ n ≤ 5000) and m (n ≤ m ≤ 3n) — the number of vertices and edges in the graph.

Each of the next m lines contains two integers v and u (1 ≤ v, u ≤ n), which mean that there is an edge between the vertices v and u. It is guaranteed that the graph is connected, does not contain loops that the degree of any vertex does not exceed 3 and a cycle of length no more than 5 passes through each edge. Note that the graph may contain multiple edges.

Interaction

At each turn, you must output exactly three vertices a, b, c (1 ≤ a, b, c ≤ n). For the first time, 3 vertices displayed will indicate which vertices you originally placed bees on. In response, you will receive the vertex where the jury placed Nastya. Each next 3 vertices will indicate where the 3 bees move at your turn. Each of the bees can, regardless of other bees, both remain at the current vertex and move along the edge. After the next output of 3 vertices, in response, you get the number of the new vertex to which Nastya went.

As soon as one of the bees is at the same vertex with Nastya or you have reached the limit on the number of moves, your program should stop working. That is if you made a move, and one of the bees ended up at the same vertex with Nastya, your program must stop working, or if Nastya made a move and ended up at the same vertex with one of the bees, you should not make your move and the program should stop working.

If the number of moves exceeds limit (n, where n is the number of vertices), you will get the Wrong Answer verdict.

Your solution may receive the verdict Idleness Limit Exceeded if you don't output anything or forget to flush the output buffer.

To flush the output buffer, you need to do the following immediately after printing the query and the line end:

  * fflush(stdout) or cout.flush() in C++; 
  * System.out.flush() in Java; 
  * flush(output) in Pascal; 
  * stdout.flush() in Python; 
  * for other languages see documentation. 



In this problem interactor is adaptive. This means that depending on all your previous moves, Nastya's behavior may change.

Hacks are not available for this problem.

Examples

Input


5 5
1 2
2 3
3 4
4 5
5 1
4
5

Output


1 1 2
1 5 3

Input


8 9
1 2
2 3
3 4
4 5
5 1
5 6
6 7
7 8
8 4
1
5

Output


7 3 3
6 2 2
5 3 1

Note

Let Nastya be a green chip, and three numbered red ones are three bees.

In the first test, the movement of the heroes looks like this.

<image> After selecting the starting vertices. <image> The first move after the bees move. <image> The first move after the Nastya's move. The first bee caught Nastya.

In the second test, the movement of the heroes looks like this.

<image> After selecting the starting vertices. <image> The first move after the bees move. <image> The first move after the Nastya's move. <image> The second move after the bees move. The first bee caught Nastya.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
mt19937 rnd(time(0));
bool isPrime(long long a) {
  long long i;
  for (i = 2; i * i <= a; i++) {
    if (a % i == 0) {
      return 0;
    }
  }
  return (a != 1);
}
bool isPalindrom(const string &s, int l, int r) {
  for (int i = 0; i < (r - l + 1) / 2; i++) {
    if (s[l + i] != s[r - i]) {
      return 0;
    }
  }
  return 1;
}
template <class type1>
type1 gcd(type1 a, type1 b) {
  type1 t;
  while (b) {
    t = b;
    b = a % b;
    a = t;
  }
  return a;
}
long long positiveMod(long long v, long long md) {
  v = v % md;
  if (v < 0) {
    v += md;
  }
  return v;
}
int n, m;
vector<int> gr[5005];
int posA, posB, posC, posN;
int dist1[5005], dist2[5005], dist3[5005];
int distt[3][5005];
void bfs(int v, int arr[5005], int locked) {
  queue<int> q;
  for (int i = 1; i <= n; i++) {
    arr[i] = (1000000007ll);
  }
  arr[v] = 0;
  q.push(v);
  while (!q.empty()) {
    int a = q.front();
    q.pop();
    for (auto it : gr[a]) {
      if (arr[it] == (1000000007ll) && it != locked) {
        arr[it] = arr[a] + 1;
        q.push(it);
      }
    }
  }
}
int getMin(int v, int arr[5005]) {
  int best = 0;
  for (int i = 1; i < gr[v].size(); i++) {
    if (arr[gr[v][i]] < arr[gr[v][best]]) {
      best = i;
    }
  }
  return gr[v][best];
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int i, j, a, b;
  cin >> n >> m;
  for (i = 0; i < m; i++) {
    cin >> a >> b;
    gr[a].push_back(b);
    gr[b].push_back(a);
  }
  posA = 1;
  bfs(posA, dist1, -1);
  posB = posA;
  for (i = 1; i <= n; i++) {
    if (dist1[posB] < dist1[i]) {
      posB = i;
    }
  }
  bfs(posA, dist1, -1);
  bfs(posB, dist2, -1);
  posC = 1;
  for (i = 1; i <= n; i++) {
    if (min(dist1[posC], dist2[posC]) < min(dist1[i], dist2[i])) {
      posC = i;
    }
  }
  cout << posA << " " << posB << " " << posC << " "
       << "\n";
  cout.flush();
  cin >> posN;
  while (1) {
    for (auto it : gr[posA]) {
      if (it == posN) {
        posA = posN;
        cout << posA << " " << posB << " " << posC << " "
             << "\n";
        cout.flush();
        return 0;
      }
    }
    for (auto it : gr[posB]) {
      if (it == posN) {
        posB = posN;
        cout << posA << " " << posB << " " << posC << " "
             << "\n";
        cout.flush();
        return 0;
      }
    }
    for (auto it : gr[posC]) {
      if (it == posN) {
        posC = posN;
        cout << posA << " " << posB << " " << posC << " "
             << "\n";
        cout.flush();
        return 0;
      }
    }
    if (gr[posN].size() == 2) {
      bfs(gr[posN][0], dist1, posN);
      bfs(gr[posN][1], dist2, posN);
      a = max(dist1[posA], dist2[posB]);
      b = max(dist1[posB], dist2[posA]);
      if (a < b) {
        posA = getMin(posA, dist1);
        posB = getMin(posB, dist2);
      } else {
        posB = getMin(posB, dist1);
        posA = getMin(posA, dist2);
      }
      if (dist1[posC] < dist2[posC]) {
        posC = getMin(posC, dist1);
      } else {
        posC = getMin(posC, dist2);
      }
    } else {
      vector<int> bestPerm;
      int bestPermMax = (1000000007ll);
      vector<int> tempPerm;
      int tempPermMax;
      bestPerm.push_back(0);
      bestPerm.push_back(1);
      bestPerm.push_back(2);
      tempPerm.push_back(0);
      tempPerm.push_back(1);
      tempPerm.push_back(2);
      bfs(gr[posN][0], distt[0], posN);
      bfs(gr[posN][1], distt[1], posN);
      bfs(gr[posN][2], distt[2], posN);
      for (int step = 0; step < 6; step++) {
        tempPermMax = 0;
        tempPermMax += distt[tempPerm[0]][posA];
        tempPermMax += distt[tempPerm[1]][posB];
        tempPermMax += distt[tempPerm[2]][posC];
        tempPermMax +=
            max(max(distt[tempPerm[0]][posA], distt[tempPerm[1]][posB]),
                distt[tempPerm[2]][posC]);
        if (tempPermMax < bestPermMax) {
          bestPermMax = tempPermMax;
          bestPerm = tempPerm;
        }
        next_permutation(tempPerm.begin(), tempPerm.end());
      }
      posA = getMin(posA, distt[bestPerm[0]]);
      posB = getMin(posB, distt[bestPerm[1]]);
      posC = getMin(posC, distt[bestPerm[2]]);
    }
    cout << posA << " " << posB << " " << posC << " "
         << "\n";
    cout.flush();
    if (posA == posN || posB == posN || posC == posN) {
      break;
    }
    cin >> posN;
    if (posA == posN || posB == posN || posC == posN) {
      break;
    }
  }
  return 0;
}