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.PriorityQueue;
import java.util.InputMismatchException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.AbstractCollection;
import java.util.Comparator;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author Vaibhav Pulastya
 */
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);
        CBeautifulLyrics solver = new CBeautifulLyrics();
        solver.solve(1, in, out);
        out.close();
    }

    static class CBeautifulLyrics {
        char[] vowel = new char[]{'a', 'e', 'i', 'o', 'u'};

        public void solve(int testNumber, InputReader in, PrintWriter out) {

            int n = in.nextInt();
            String[] S = in.nextStringArray(n);
            int[] vC = new int[n];
            char[] l = new char[n];
            for (int i = 0; i < S.length; i++) {
                for (int j = 0; j < S[i].length(); j++) {
                    if (isvowel(S[i].charAt(j))) {
                        vC[i]++;
                        l[i] = S[i].charAt(j);
                    }
                }
            }

            PriorityQueue<node> P = new PriorityQueue<>(new Comparator<node>() {

                public int compare(node o1, node o2) {
                    return (o1.vc == o2.vc) ? Character.compare(o1.last, o2.last) : o1.vc - o2.vc;
                }
            });

            for (int i = 0; i < n; i++) {
                P.add(new node(l[i], vC[i], i));

            }

            ArrayList<String> same = new ArrayList<>();
            ArrayList<String> diff = new ArrayList<>();

            while (P.size() >= 2) {
                node s1 = P.poll();
                node s2 = P.poll();

                if (s1.vc == s2.vc) {
                    if (s1.last == s2.last) {
                        same.add(S[s1.i]);
                        same.add(S[s2.i]);
                    } else {
                        if (!P.isEmpty()) {
                            node s3 = P.poll();
                            if (s3.vc == s2.vc && s3.last == s2.last) {
                                same.add(S[s2.i]);
                                same.add(S[s3.i]);
                                P.add(s1);
                            } else {
                                diff.add(S[s1.i]);
                                diff.add(S[s2.i]);
                                P.add(s3);
                            }
                        } else {
                            diff.add(S[s1.i]);
                            diff.add(S[s2.i]);
                        }
                    }
                } else {
                    P.add(s2);
                }
            }

            ArrayList<String> lyric1 = new ArrayList<>();
            ArrayList<String> lyric2 = new ArrayList<>();
            int i;
            for (i = 0; i < Math.min(same.size(), diff.size()); i += 2) {
                lyric1.add(diff.get(i) + " " + same.get(i));
                lyric2.add(diff.get(i + 1) + " " + same.get(i + 1));
            }
            if (i < same.size()) {
                for (; i < same.size(); i += 4) {
                    if (i + 3 < same.size()) {
                        lyric1.add(same.get(i) + " " + same.get(i + 2));
                        lyric2.add(same.get(i + 1) + " " + same.get(i + 3));
                    }
                }
            }
            out.println(lyric1.size());
            for (int j = 0; j < lyric1.size(); j++) {
                out.println(lyric1.get(j));
                out.println(lyric2.get(j));
            }

        }

        boolean isvowel(char a) {
            for (char c : vowel) {
                if (c == a) return true;
            }
            return false;
        }

        class node {
            char last;
            int vc;
            int i;

            node(char ss, int vv, int id) {
                last = ss;
                vc = vv;
                i = id;
            }

        }

    }

    static class InputReader {
        private InputStream stream;
        private byte[] buf = new byte[1024];
        private int curChar;
        private int numChars;

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

        public int read() {
            if (numChars == -1)
                throw new InputMismatchException();
            if (curChar >= numChars) {
                curChar = 0;
                try {
                    numChars = stream.read(buf);
                } catch (IOException e) {
                    throw new InputMismatchException();
                }
                if (numChars <= 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 {
                if (c < '0' || c > '9')
                    throw new InputMismatchException();
                res *= 10;
                res += c - '0';
                c = read();
            } while (!isSpaceChar(c));
            return res * sgn;
        }

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

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

        public String[] nextStringArray(int size) {
            String[] array = new String[size];
            for (int i = 0; i < size; i++)
                array[i] = next();
            return array;
        }

    }
}