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 JAVA):

Solution:
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.InputMismatchException;
import java.io.IOException;
import java.util.ArrayList;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author real
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskC {
        public void solve(int testNumber, InputReader in, PrintWriter out) {
            int n = in.nextInt();
            ArrayList<String> list = new ArrayList<>();
            HashMap<Character, Integer> hm = new HashMap<>();
            hm.put('a', 0);
            hm.put('e', 1);
            hm.put('i', 2);
            hm.put('o', 3);
            hm.put('u', 4);
            long ans[] = new long[in.length1e5 + 1];
            ArrayList<String> vowel[][] = new ArrayList[in.length1e5 + 1][5];

            for (int i = 0; i < ans.length; i++) {
                for (int j = 0; j < 5; j++) {
                    vowel[i][j] = new ArrayList<>();
                }
            }
            int val = 0;
            HashMap<Integer, Integer> hs = new HashMap<>();
            //String str=in.readString();
            for (int i = 0; i < n; i++) {
                String str = in.readString();
                int cnt = 0;
                int ind = 0;
                for (int j = 0; j < str.length(); j++) {
                    if (hm.containsKey(str.charAt(j))) {
                        cnt++;
                        ind = hm.get(str.charAt(j));
                    }
                }
                int c = 0;
                if (!hs.containsKey(cnt)) {
                    hs.put(cnt, val);
                    c = val;
                    val++;

                } else {
                    c = hs.get(cnt);
                }
                ans[c]++;
                vowel[c][ind].add(str);
            }
            int init = 0;
            for (int i = 0; i < ans.length; i++) {
                init += (ans[i] / 2);
            }
            ArrayList<String> li = new ArrayList<>();
            int num = 0;
            //int len=0;
            //int pos=0;
            int cnt = 0;
            while (true) {
                //   System.out.println(cnt);
                int pos = cnt / 5;
                int ind = cnt % 5;
                if (pos >= val) {
                    break;
                }
                if (vowel[pos][ind].size() < 2) {
                    cnt++;
                } else {
                    if (init - num <= 1) {
                        break;
                    }
                    li.add(vowel[pos][ind].remove(vowel[pos][ind].size() - 1));
                    li.add(vowel[pos][ind].remove(vowel[pos][ind].size() - 1));
                    init--;
                    num++;
                }
            }
            // System.out.println("yooo");
            ArrayList<String> list2 = new ArrayList<>();
            for (int i = 0; i < ans.length; i++) {
                ArrayList<String> curr = new ArrayList<>();
                for (int j = 0; j < 5; j++) {
                    for (String x : vowel[i][j]) {
                        curr.add(x);
                    }
                }
                for (int j = 1; j < curr.size(); j += 2) {
                    list2.add(curr.get(j));
                    list2.add(curr.get(j - 1));
                }
            }
            out.println(li.size() / 2);
            for (int i = 0; i < li.size(); i++) {
                out.println(list2.get(i) + " " + li.get(i));
            }
        }

    }

    static class InputReader {
        private final InputStream stream;
        private final byte[] buf = new byte[8192];
        private int curChar;
        private int snumChars;
        int length1e5 = (int) 1e5 + 1;

        public InputReader(InputStream st) {
            this.stream = st;
        }

        public int read() {
            //*-*------clare------
//remeber while comparing 2 non primitive data type not to use ==
//remember Arrays.sort for primitive data has worst time case complexity of 0(n^2) bcoz it uses quick sort
//again silly mist[[[[[[pakes ,yr kb tk krta rhega ye mistakes
//try to write simple codes ,break it into simple things
            // for test cases make sure println(); ;)
//knowledge>rating
        /*
        public class Main
        implements Runnable{
    public static void main(String[] args) {
        new Thread(null,new Main(),"Main",1<<26).start();

    }
    public void run() {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();//chenge the name of task
        solver.solve(1, in, out);
        out.close();
    }
         */

            if (snumChars == -1)
                throw new InputMismatchException();
            if (curChar >= snumChars) {
                curChar = 0;
                try {
                    snumChars = stream.read(buf);
                } catch (IOException e) {
                    throw new InputMismatchException();
                }
                if (snumChars <= 0)
                    return -1;
            }
            return buf[curChar++];
        }

        public int nextInt() {
            int c = read();
            while (isSpaceChar(c)) {
                c = read();
            }
            int sgn = 1;
            if (c == '-') {
                sgn = -1;
                c = read();
            }
            int res = 0;
            do {
                res *= 10;
                res += c - '0';
                c = read();
            } while (!isSpaceChar(c));
            return res * sgn;
        }

        public String readString() {
            int c = read();
            while (isSpaceChar(c)) {
                c = read();
            }
            StringBuilder res = new StringBuilder();
            do {
                res.appendCodePoint(c);
                c = read();
            } while (!isSpaceChar(c));
            return res.toString();
        }

        public boolean isSpaceChar(int c) {
            return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
        }

    }
}