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

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

    static class CBeautifulLyrics {
        public void solve(int testNumber, FastScanner br, PrintWriter pw) {
            int n = br.nextInt();
            String[] in = new String[n];
            for (int i = 0; i < n; i++) in[i] = br.nextString();
            ArrayList<Data> data = new ArrayList<Data>();
            ArrayList<Data>[] last = new ArrayList[5];
            for (int i = 0; i < 5; i++) {
                last[i] = new ArrayList<>();
            }
            for (int i = 0; i < n; i++) {
                String s = in[i];
                int nv = 0;
                char lv = ' ';
                for (int j = 0; j < s.length(); j++) {
                    if (isVowel(s.charAt(j))) {
                        nv++;
                        lv = s.charAt(j);
                    }
                }
                if (lv == 'a') {
                    last[0].add(new Data(s, nv, lv));
                } else if (lv == 'e') {
                    last[1].add(new Data(s, nv, lv));
                } else if (lv == 'i') {
                    last[2].add(new Data(s, nv, lv));
                } else if (lv == 'o') {
                    last[3].add(new Data(s, nv, lv));
                } else if (lv == 'u') {
                    last[4].add(new Data(s, nv, lv));
                }
            }
            for (int i = 0; i < 5; i++) {
                Collections.sort(last[i]);
            }
            Collections.sort(data);
            ArrayList<Pair> first = new ArrayList<>();
            ArrayList<Pair> second = new ArrayList<>();
            for (int i = 0; i < 5; i++) {
                for (int j = 0; j < last[i].size(); j++) {
                    if (j == last[i].size() - 1) {
                        data.add(last[i].get(j));
                        continue;
                    }
                    if (last[i].get(j).nv == last[i].get(j + 1).nv) {
                        first.add(new Pair(last[i].get(j), last[i].get(j + 1)));
                        j++;
                    } else {
                        data.add(last[i].get(j));
                    }
                }
            }
            Collections.sort(data);
            for (int i = 0; i < data.size() - 1; i++) {
                if (data.get(i).nv == data.get(i + 1).nv) {
                    second.add(new Pair(data.get(i), data.get(i + 1)));
                    i++;
                }
            }
            int sz = Math.min(first.size(), second.size());
            if (first.size() > second.size()) {
                int cnt = 0;
                for (int i = 0; i < second.size(); i++) {
                    cnt++;
                }
                for (int i = second.size(); i < first.size() - 1; i++) {
                    cnt++;
                    i++;
                }
                pw.println(cnt);
                for (int i = 0; i < second.size(); i++) {
                    pw.println(second.get(i).f.st + " " + first.get(i).f.st);
                    pw.println(second.get(i).s.st + " " + first.get(i).s.st);
                }
                for (int i = second.size(); i < first.size() - 1; i++) {
                    pw.println(first.get(i).f.st + " " + first.get(i + 1).f.st);
                    pw.println(first.get(i).s.st + " " + first.get(i + 1).s.st);
                    i++;
                }
            } else {
                pw.println(sz);
                for (int i = 0; i < sz; i++) {
                    pw.println(second.get(i).f.st + " " + first.get(i).f.st);
                    pw.println(second.get(i).s.st + " " + first.get(i).s.st);
                }
            }
            pw.close();
        }

        public boolean isVowel(char c) {
            return c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u';
        }

        public class Pair {
            Data f;
            Data s;

            public Pair(Data f, Data s) {
                this.f = f;
                this.s = s;
            }

        }

        public class Data implements Comparable<Data> {
            String st;
            int nv;
            char lv;

            public Data(String st, int nv, char lv) {
                this.st = st;
                this.nv = nv;
                this.lv = lv;
            }

            public int compareTo(Data d) {
                return this.nv == d.nv ? (Integer.compare(this.lv - 'a', d.lv - 'a')) : this.nv - d.nv;
            }

        }

    }

    static class FastScanner {
        private InputStream stream;
        private byte[] buf = new byte[1024];
        private int curChar;
        private int numChars;
        private FastScanner.SpaceCharFilter filter;

        public FastScanner(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 nextString() {
            int c = read();
            while (isSpaceChar(c)) {
                c = read();
            }
            StringBuilder res = new StringBuilder();
            do {
                if (Character.isValidCodePoint(c)) {
                    res.appendCodePoint(c);
                }
                c = read();
            } while (!isSpaceChar(c));
            return res.toString();
        }

        public boolean isSpaceChar(int c) {
            if (filter != null) {
                return filter.isSpaceChar(c);
            }
            return isWhitespace(c);
        }

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

        public interface SpaceCharFilter {
            public boolean isSpaceChar(int ch);

        }

    }
}