Problem: Little Chris is participating in a graph cutting contest. He's a pro. The time has come to test his skills to the fullest.

Chris is given a simple undirected connected graph with n vertices (numbered from 1 to n) and m edges. The problem is to cut it into edge-distinct paths of length 2. Formally, Chris has to partition all edges of the graph into pairs in such a way that the edges in a single pair are adjacent and each edge must be contained in exactly one pair.

For example, the figure shows a way Chris can cut a graph. The first sample test contains the description of this graph.

<image>

You are given a chance to compete with Chris. Find a way to cut the given graph or determine that it is impossible!

Input

The first line of input contains two space-separated integers n and m (1 ≤ n, m ≤ 105), the number of vertices and the number of edges in the graph. The next m lines contain the description of the graph's edges. The i-th line contains two space-separated integers ai and bi (1 ≤ ai, bi ≤ n; ai ≠ bi), the numbers of the vertices connected by the i-th edge. It is guaranteed that the given graph is simple (without self-loops and multi-edges) and connected.

Note: since the size of the input and output could be very large, don't use slow output techniques in your language. For example, do not use input and output streams (cin, cout) in C++.

Output

If it is possible to cut the given graph into edge-distinct paths of length 2, output <image> lines. In the i-th line print three space-separated integers xi, yi and zi, the description of the i-th path. The graph should contain this path, i.e., the graph should contain edges (xi, yi) and (yi, zi). Each edge should appear in exactly one path of length 2. If there are multiple solutions, output any of them.

If it is impossible to cut the given graph, print "No solution" (without quotes).

Examples

Input

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


Output

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

Input

3 3
1 2
2 3
3 1


Output

No solution


Input

3 2
1 2
2 3


Output

1 2 3

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
int match[100005];
vector<pair<int, int> > edge_list;
vector<pair<int, int> > E[100005];
bool vis[100005];
bool used_edge[100005];
int last[100005];
void add_edge(int a, int b) {
  if (a > b) swap(a, b);
  E[a].push_back(make_pair(b, edge_list.size()));
  E[b].push_back(make_pair(a, edge_list.size()));
  edge_list.push_back(make_pair(a, b));
}
void add_match(int e, int f) {
  assert(e >= 0 && f >= 0);
  assert(match[e] < 0 && match[f] < 0);
  match[e] = f;
  match[f] = e;
}
bool dfs(int i, int p = -1) {
  if (vis[i]) return true;
  vis[i] = true;
  int numE = E[i].size();
  vector<int> unhappy_edge;
  for (int x = 0; x < (numE); ++x) {
    int j = E[i][x].first;
    int e_id = E[i][x].second;
    if (used_edge[e_id]) continue;
    if (j == p) continue;
    used_edge[e_id] = true;
    bool happy_vert = dfs(j, i);
    if (happy_vert) {
      unhappy_edge.push_back(e_id);
    } else {
      int other_edge = last[j];
      add_match(other_edge, e_id);
    }
  }
  int U = unhappy_edge.size();
  for (int x = 0; x < U - 1; x += 2) {
    add_match(unhappy_edge[x], unhappy_edge[x + 1]);
  }
  if (unhappy_edge.size() % 2) {
    last[i] = unhappy_edge.back();
    return false;
  } else {
    return true;
  }
};
int main() {
  memset(match, -1, sizeof(match));
  memset(vis, 0, sizeof(vis));
  memset(last, -1, sizeof(last));
  int N, M, a, b, c, d;
  cin >> N >> M;
  edge_list.reserve(M);
  for (int j = 0; j < (M); ++j) {
    scanf("%d%d", &a, &b);
    add_edge(a, b);
  }
  if (dfs(1)) {
    assert((M % 2) == 0);
    int seen = 0;
    for (int j = 0; j < (M); ++j) {
      assert(match[j] >= 0);
      if (match[j] > j) {
        a = edge_list[j].first;
        b = edge_list[j].second;
        c = edge_list[match[j]].first;
        d = edge_list[match[j]].second;
        assert(a != b && c != d);
        if (a == c)
          swap(a, b);
        else if (a == d)
          swap(a, b), swap(c, d);
        else if (b == d)
          swap(c, d);
        assert(b == c && a != b && c != d && a != d);
        printf("%d %d %d\n", a, b, d);
        seen++;
      }
    }
    assert(2 * seen == M);
  } else {
    assert((M % 2));
    printf("No solution\n");
  }
}