Problem: You are given n words, each of which consists of lowercase alphabet letters. Each word contains at least one vowel. You are going to choose some of the given words and make as many beautiful lyrics as possible.

Each lyric consists of two lines. Each line consists of two words separated by whitespace. 

A lyric is beautiful if and only if it satisfies all conditions below. 

  * The number of vowels in the first word of the first line is the same as the number of vowels in the first word of the second line. 
  * The number of vowels in the second word of the first line is the same as the number of vowels in the second word of the second line. 
  * The last vowel of the first line is the same as the last vowel of the second line. Note that there may be consonants after the vowel. 



Also, letters "a", "e", "o", "i", and "u" are vowels. Note that "y" is never vowel.

For example of a beautiful lyric, 

"hello hellooowww" 

"whatsup yowowowow" 

is a beautiful lyric because there are two vowels each in "hello" and "whatsup", four vowels each in "hellooowww" and "yowowowow" (keep in mind that "y" is not a vowel), and the last vowel of each line is "o".

For example of a not beautiful lyric, 

"hey man"

"iam mcdic" 

is not a beautiful lyric because "hey" and "iam" don't have same number of vowels and the last vowels of two lines are different ("a" in the first and "i" in the second).

How many beautiful lyrics can you write from given words? Note that you cannot use a word more times than it is given to you. For example, if a word is given three times, you can use it at most three times.

Input

The first line contains single integer n (1 ≤ n ≤ 10^{5}) — the number of words.

The i-th of the next n lines contains string s_{i} consisting lowercase alphabet letters — the i-th word. It is guaranteed that the sum of the total word length is equal or less than 10^{6}. Each word contains at least one vowel.

Output

In the first line, print m — the number of maximum possible beautiful lyrics.

In next 2m lines, print m beautiful lyrics (two lines per lyric).

If there are multiple answers, print any.

Examples

Input


14
wow
this
is
the
first
mcdics
codeforces
round
hooray
i
am
proud
about
that


Output


3
about proud
hooray round
wow first
this is
i that
mcdics am


Input


7
arsijo
suggested
the
idea
for
this
problem


Output


0


Input


4
same
same
same
differ


Output


1
same differ
same same

Note

In the first example, those beautiful lyrics are one of the possible answers. Let's look at the first lyric on the sample output of the first example. "about proud hooray round" forms a beautiful lyric because "about" and "hooray" have same number of vowels, "proud" and "round" have same number of vowels, and both lines have same last vowel. On the other hand, you cannot form any beautiful lyric with the word "codeforces".

In the second example, you cannot form any beautiful lyric from given words.

In the third example, you can use the word "same" up to three times.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
struct myhash {
  static uint64_t splitmix64(uint64_t x) {
    x += 0x9e3779b97f4a7c15;
    x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9;
    x = (x ^ (x >> 27)) * 0x94d049bb133111eb;
    return x ^ (x >> 31);
  }
  size_t operator()(uint64_t x) const {
    static const uint64_t FIXED_RANDOM =
        chrono::steady_clock::now().time_since_epoch().count();
    return splitmix64(x + FIXED_RANDOM);
  }
};
long long modpow(long long base, long long exp, long long modulus) {
  base %= modulus;
  long long result = 1;
  while (exp > 0) {
    if (exp & 1) result = (result * base) % modulus;
    base = (base * base) % modulus;
    exp >>= 1;
  }
  return result;
}
long long modinv(long long a, long long m) {
  long long m0 = m;
  long long y = 0, x = 1;
  if (m == 1) return 0;
  while (a > 1) {
    long long q = a / m;
    long long t = m;
    m = a % m, a = t;
    t = y;
    y = x - q * y;
    x = t;
  }
  if (x < 0) x += m0;
  return x;
}
int main() {
  long long n;
  cin >> n;
  vector<string> s(n);
  for (long long(i) = (0); i < (n); ++(i)) cin >> s[i];
  map<long long, unordered_map<char, vector<string>>> m;
  vector<pair<string, string>> secondwords(0);
  vector<vector<string>> firstwords(0);
  unordered_map<long long, long long> fq;
  vector<long long> poss(0);
  for (long long(i) = (0); i < (n); ++(i)) {
    char lastvowel;
    long long numvowels = 0;
    for (long long(j) = (0); j < (s[i].length()); ++(j)) {
      switch (s[i][j]) {
        case 'a':
        case 'e':
        case 'i':
        case 'o':
        case 'u':
          numvowels++;
          lastvowel = s[i][j];
          break;
      }
    }
    if (!fq[numvowels]) {
      fq[numvowels] = 1;
      poss.push_back(numvowels);
    }
    m[numvowels][lastvowel].push_back(s[i]);
  }
  vector<char> st{'a', 'e', 'i', 'o', 'u'};
  for (long long(i) = (0); i < (poss.size()); ++(i)) {
    vector<string> ones(0);
    for (long long(j) = (0); j < (st.size()); ++(j)) {
      for (long long(k) = (0); k < (m[poss[i]][st[j]].size() / 2); ++(k)) {
        secondwords.push_back(
            {m[poss[i]][st[j]][k * 2], m[poss[i]][st[j]][k * 2 + 1]});
      }
      if (m[poss[i]][st[j]].size() % 2 == 1) {
        ones.push_back(m[poss[i]][st[j]][m[poss[i]][st[j]].size() - 1]);
      }
    }
    firstwords.push_back(ones);
  }
  long long np = secondwords.size();
  vector<pair<string, string>> fans(0);
  for (long long(i) = (0); i < (firstwords.size()); ++(i)) {
    for (long long(j) = (0); j < (firstwords[i].size() / 2); ++(j)) {
      fans.push_back({firstwords[i][j * 2], firstwords[i][j * 2 + 1]});
    }
  }
  if (fans.size() >= secondwords.size()) {
    cout << secondwords.size() << "\n";
    for (long long(i) = (0); i < (secondwords.size()); ++(i)) {
      cout << fans[i].first << " " << secondwords[i].first << "\n";
      cout << fans[i].second << " " << secondwords[i].second << "\n";
    }
  } else {
    long long sc = secondwords.size(), fw = fans.size();
    while (sc > fw) {
      sc--;
      fw++;
      fans.push_back(secondwords[sc]);
    }
    cout << sc << "\n";
    for (long long(i) = (0); i < (sc); ++(i)) {
      cout << fans[i].first << " " << secondwords[i].first << "\n";
      cout << fans[i].second << " " << secondwords[i].second << "\n";
    }
  }
}