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.util.ArrayList;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.Queue;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
import java.util.Random;

public class BeautifulLyrics {
    public static void main(String[] args) {
        Reader in = new Reader();
        int n = in.nextInt();
        Word[] words = new Word[n];
        for (int i = 0; i < n; i++)
            words[i] = new Word(in.next());
        Arrays.sort(words);
        ArrayList<Sentence> part1 = new ArrayList<>();
        ArrayList<Sentence> part2 = new ArrayList<>();
        for (int i = 0; i < n - 1; i++) {
            if (words[i] == null)
                continue;
            if (words[i].lastVowel == words[i + 1].lastVowel && words[i].vowels == words[i + 1].vowels) {
                part2.add(new Sentence(words[i], words[i + 1]));
                words[i] = null;
                words[i + 1] = null;
            }
        }
        int idx = 0;
        boolean cont = true;
        for (int i = 0; i < n && cont; i++) {
            if (words[i] == null) continue;
            idx = Math.max(idx, i + 1);
            while (idx < n && words[idx] == null) idx++;
            if (idx == n) {
                cont = false;
            } else if (words[i].vowels == words[idx].vowels) {
                part1.add(new Sentence(words[i], words[idx]));
                words[i] = null;
                words[idx] = null;
            }
        }
        ArrayList<Final> ans = new ArrayList<>();
        int m = Math.min(part1.size(), part2.size());
        for (int i = 0; i < m; i++) ans.add(new Final(part1.get(i), part2.get(i)));
        for (int i = m; i < part2.size(); i += 2)
            if (i + 1 < part2.size()) ans.add(new Final(part2.get(i), part2.get(i + 1)));
        System.out.println(ans.size());
        for (Final f : ans) f.print();
    }

    static class Final {
        Sentence s1, s2;

        public Final(Sentence s1, Sentence s2) {
            this.s1 = s1;
            this.s2 = s2;
        }

        public void print() {
            System.out.println(s1.w1.word + " " + s2.w1.word);
            System.out.println(s1.w2.word + " " + s2.w2.word);
        }
    }

    static class Sentence {
        Word w1, w2;
        int vowels;
        char lastVowel;

        public Sentence(Word w1, Word w2) {
            this.w1 = w1;
            this.w2 = w2;
            this.vowels = w1.vowels;
            this.lastVowel = w2.lastVowel;
        }
    }

    static class Word implements Comparable<Word> {
        int vowels;
        char lastVowel;
        String word;

        public Word(String s) {
            this.word = s;
            this.vowels = 0;
            this.lastVowel = 'x';
            for (int i = s.length() - 1; i >= 0; i--) {
                if (isVowel(s.charAt(i))) {
                    this.vowels++;
                    if (lastVowel == 'x')
                        this.lastVowel = s.charAt(i);
                }
            }
        }

        @Override
        public int compareTo(Word o) {
            if (this.vowels == o.vowels)
                return this.lastVowel - o.lastVowel;
            return this.vowels - o.vowels;
        }
    }

    static boolean isVowel(char c) {
        if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u')
            return true;
        return false;
    }

    static class Reader {
        static BufferedReader br;
        static StringTokenizer st;
        private int charIdx = 0;
        private String s;

        public Reader() {
            this.br = new BufferedReader(new InputStreamReader(System.in));
        }

        public int[] na(int n) {
            int[] a = new int[n];
            for (int i = 0; i < n; i++)
                a[i] = nextInt();
            return a;
        }

        public double[] nd(int n) {
            double[] a = new double[n];
            for (int i = 0; i < n; i++)
                a[i] = nextDouble();
            return a;
        }

        public char nextChar() {
            if (s == null || charIdx >= s.length()) {
                if (st == null || !st.hasMoreTokens())
                    try {
                        readLine();
                    } catch (Exception e) {
                    }
                s = st.nextToken();
                charIdx = 0;
            }
            return s.charAt(charIdx++);
        }

        public long[] nl(int n) {
            long[] a = new long[n];
            for (int i = 0; i < n; i++)
                a[i] = nextLong();
            return a;
        }

        public char[] nca() {
            return next().toCharArray();
        }

        public String[] nS(int n) {
            String[] a = new String[n];
            for (int i = 0; i < n; i++)
                a[i] = next();
            return a;
        }

        public int nextInt() {
            if (st == null || !st.hasMoreTokens())
                try {
                    readLine();
                } catch (Exception e) {
                }
            return Integer.parseInt(st.nextToken());
        }

        public double nextDouble() {
            if (st == null || !st.hasMoreTokens())
                try {
                    readLine();
                } catch (Exception e) {
                }
            return Double.parseDouble(st.nextToken());
        }

        public Long nextLong() {
            if (st == null || !st.hasMoreTokens())
                try {
                    readLine();
                } catch (Exception e) {
                }
            return Long.parseLong(st.nextToken());
        }

        public String next() {
            if (st == null || !st.hasMoreTokens())
                try {
                    readLine();
                } catch (Exception e) {
                }
            return st.nextToken();
        }

        public static void readLine() {
            try {
                st = new StringTokenizer(br.readLine());
            } catch (Exception e) {
            }
        }
    }
}