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>
#pragma comment(linker, "/STACK:268435456")
using namespace std;
template <typename T>
inline T abs(T a) {
  return ((a < 0) ? -a : a);
}
template <typename T>
inline T sqr(T a) {
  return a * a;
}
template <class T>
T gcd(T a, T b) {
  return a ? gcd(b % a, a) : b;
}
template <class T>
T lcm(T a, T b) {
  return a / gcd(a, b) * b;
}
template <class T>
T sign(T a) {
  return a > 0 ? 1 : (a < 0 ? -1 : 0);
}
const int dx[] = {-1, 0, 1, 0};
const int dy[] = {0, 1, 0, -1};
const int dxK[] = {-1, -1, 0, 1, 1, 1, 0, -1};
const int dyK[] = {0, 1, 1, 1, 0, -1, -1, -1};
const int dxKn[] = {-2, -1, 1, 2, 2, 1, -1, -2};
const int dyKn[] = {1, 2, 2, 1, -1, -2, -2, -1};
const int N = int(2e6) + 9;
const int M = int(2e2) + 9;
const int LOGN = 22;
const int SQN = 350;
const int MOD = int(1e9) + 7;
const int INF = 1e9 + 100;
const long long INF64 = 2e18;
const long double PI = 3.1415926535897932384626433832795;
const long double EPS = 1e-9;
int n, m;
vector<pair<int, int> > g[N];
bool u[N], ue[N];
pair<int, int> e[N];
int a[N], b[N], c[N], szres;
void add(int v, int u) {
  for (int i = 0; i < (int)(2); ++i) {
    swap(e[v].first, e[v].second);
    for (int j = 0; j < (int)(2); ++j) {
      swap(e[u].first, e[u].second);
      if (e[u].first == e[v].first) {
        a[szres] = e[u].second;
        b[szres] = e[u].first;
        c[szres] = e[v].second;
        ++szres;
        return;
      }
    }
  }
  assert(false);
}
int dfs(int v) {
  u[v] = true;
  int cur = -1;
  for (int i = 0; i < (int)((int)(g[v].size())); ++i) {
    int to = g[v][i].first, id = g[v][i].second;
    if (ue[id]) continue;
    ue[id] = true;
    if (u[to]) {
      if (cur == -1)
        cur = id;
      else
        add(cur, id), cur = -1;
    } else {
      int cur2 = dfs(to);
      if (cur2 != -1)
        add(cur2, id);
      else {
        if (cur == -1)
          cur = id;
        else
          add(cur, id), cur = -1;
      }
    }
  }
  return cur;
}
void solve() {
  cin >> n >> m;
  for (int i = 0; i < (int)(m); ++i) {
    cin >> e[i].first >> e[i].second;
    --e[i].first, --e[i].second;
    g[e[i].first].push_back(make_pair(e[i].second, i));
    g[e[i].second].push_back(make_pair(e[i].first, i));
  }
  if (m & 1) {
    cout << "No solution";
    return;
  }
  assert(dfs(0) == -1);
  for (int i = 0; i < (int)(m / 2); ++i)
    cout << a[i] + 1 << ' ' << b[i] + 1 << ' ' << c[i] + 1 << endl;
}
int main() {
  srand(time(NULL));
  srand(time(NULL));
  cout << setprecision(10) << fixed;
  cerr << setprecision(10) << fixed;
  solve();
  return 0;
}