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.OutputStream;
import java.io.PrintWriter;
import java.io.BufferedWriter;
import java.util.HashMap;
import java.util.InputMismatchException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Map.Entry;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.util.Comparator;
import java.io.InputStream;

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

    static class TaskC {
        private int index(char c) {
            return "aeoiu".indexOf(c);
        }

        public void solve(int testNumber, InputReader in, OutputWriter out) {
            final int VOWELS = 5;

            int n = in.nextInt();
            Word[] words = new Word[n];
            for (int i = 0; i < n; i++) {
                Word word = new Word(in.nextString());
                words[i] = word;
            }
            HashMap<Integer, ArrayList<Word>> map = new HashMap<>();
            for (Word w : words) {
                int key = w.vowelCount;
                map.putIfAbsent(key, new ArrayList<>());
                map.get(key).add(w);
            }
            ArrayList<Word> leftCol = new ArrayList<>();
            ArrayList<Word> rightCol = new ArrayList<>();
            for (HashMap.Entry<Integer, ArrayList<Word>> entry : map.entrySet()) {
                ArrayList<Word> same = entry.getValue();
                if (same.size() < 2) continue;
                int[] count = new int[VOWELS];
                for (Word w : same) count[index(w.lastVowel)]++;
                int[] need = new int[VOWELS];
                for (Word w : same) {
                    int index = index(w.lastVowel);
                    if (count[index] > 1) {
                        need[index] = count[index] % 2 == 0 ? count[index] : count[index] - 1;
                    }
                }
                ArrayList<Word> tempRight = new ArrayList<>();
                boolean[] taken = new boolean[same.size()];
                for (int i = 0; i < same.size(); i++) {
                    Word w = same.get(i);
                    int index = index(w.lastVowel);
                    if (need[index] > 0) {
                        tempRight.add(w);
                        need[index]--;
                        taken[i] = true;
                    }
                }
                tempRight.sort(new Comparator<Word>() {

                    public int compare(Word o1, Word o2) {
                        return o1.lastVowel - o2.lastVowel;
                    }
                });
                rightCol.addAll(tempRight);

                int remSize = 0;
                for (boolean b : taken) if (!b) remSize++;
                if (remSize > 1) {
                    if (remSize % 2 != 0) remSize--;
                    for (int i = 0; i < same.size() && remSize > 0; i++) {
                        if (!taken[i]) {
                            leftCol.add(same.get(i));
                            remSize--;
                        }
                    }
                }
            }

            ArrayList<Beauty> ret = new ArrayList<>();
            int size = Math.min(leftCol.size(), rightCol.size());
            for (int i = 0; i < size - 1; i += 2) {
                ret.add(new Beauty(leftCol.get(i).word, leftCol.get(i + 1).word, rightCol.get(i).word, rightCol.get(i + 1).word));
            }
            if (rightCol.size() - size >= 4) {
                for (int i = size; i < rightCol.size() - 3; i += 4) {
                    ret.add(new Beauty(rightCol.get(i).word, rightCol.get(i + 1).word, rightCol.get(i + 2).word, rightCol.get(i + 3).word));
                }
            }
            out.println(ret.size());
            for (Beauty b : ret) out.println(b);
        }

        private class Word {
            private int vowelCount;
            private char lastVowel;
            private String word;

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

            private Word(String w) {
                word = w;
                for (int i = 0; i < word.length(); i++) {
                    char c = w.charAt(i);
                    if (this.isVowel(c)) {
                        vowelCount++;
                        lastVowel = c;
                    }
                }
            }

            public String toString() {
                return (word + "(" + vowelCount + " " + lastVowel + ")");
            }

        }

        class Beauty {
            String leftUpper;
            String leftLower;
            String rightUpper;
            String rightLower;

            Beauty(String lu, String ll, String ru, String rl) {
                leftUpper = lu;
                leftLower = ll;
                rightUpper = ru;
                rightLower = rl;
            }

            public String toString() {
                return leftUpper + " " + rightUpper + "\n" + leftLower + " " + rightLower;
            }

        }

    }

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

        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 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);

        }

    }

    static class OutputWriter {
        private final PrintWriter writer;

        public OutputWriter(OutputStream outputStream) {
            writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));
        }

        public OutputWriter(Writer writer) {
            this.writer = new PrintWriter(writer);
        }

        public void print(Object... objects) {
            for (int i = 0; i < objects.length; i++) {
                if (i != 0) {
                    writer.print(' ');
                }
                writer.print(objects[i]);
            }
        }

        public void println(Object... objects) {
            print(objects);
            writer.println();
        }

        public void close() {
            writer.close();
        }

        public void println(int i) {
            writer.println(i);
        }

    }
}