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.*;
    import java.lang.*;
    import java.io.*;
    public class A{
        
        public static void main(String[] args){
            InputStream inputStream = System.in;
            InputReader in = new InputReader(inputStream);
            OutputStream outputStream = System.out;
            PrintWriter out = new PrintWriter(outputStream);
            Solver s = new Solver();
            s.solve(in,out);
            out.close();
        }
        static class Solver{

            static class Pair{
                int x,y;
                Pair(int x,int y){
                    this.x = x;
                    this.y = y;
                }
            }

            private int countV(String s){
                int l = s.length();
                int count =0;
                for(int i=0;i<l;i++){
                    char c = s.charAt(i);
                    if(c=='a' || c=='e' || c=='i' || c=='o' || c=='u')
                        count++;
                }
                return count;
            }
            private char getLast(String s){
                int l = s.length();
                int count =0;
                for(int i=l-1;i>=0;i--){
                    char c = s.charAt(i);
                    if(c=='a' || c=='e' || c=='i' || c=='o' || c=='u')
                        return c;
                }
                return 'a';    
            }

            private void solve(InputReader in, PrintWriter out){
                int n = in.nextInt();
                String arr[] = new String[n];
                HashMap<Integer,ArrayList<Integer>> map = new HashMap();
                // HashSet set[] = new HashSet[5];
                // for(int i=0;i<5;i++)
                //     set[i] = new HashSet<String>();

                for(int i=0;i<n;i++){
                    arr[i] = in.next();
                    int c = countV(arr[i]);
                    if(map.containsKey(c)){
                        ArrayList<Integer> temp = map.get(c);
                        temp.add(i);
                        map.put(c,temp);
                    }
                    else{
                        ArrayList<Integer> temp = new ArrayList<Integer>();
                        temp.add(i);
                        map.put(c,temp);
                    }
                }
                Stack<Solver.Pair> p1 = new Stack<Solver.Pair>();
                Stack<Solver.Pair> p2 = new Stack<Solver.Pair>();

                for(ArrayList<Integer> index : map.values()){
                    //index array for particular freq:
                    int l = index.size();
                    
                    // for(int i=0;i<l;i++){
                    //     out.print(arr[index.get(i)]+" ");
                    // }
                    // out.println();

                    Stack<Integer> v[] = new Stack[5];
                    for(int i=0;i<5;i++)
                        v[i] = new Stack<Integer>();
                    for(int i=0;i<l;i++){
                        int pos = index.get(i);
                        char ch = getLast(arr[pos]);
                        if(ch=='a')
                            v[0].push(pos);
                        else if(ch=='e')
                            v[1].push(pos);
                        else if(ch=='i')
                            v[2].push(pos);
                        else if(ch=='o')
                            v[3].push(pos);
                        else if(ch=='u')
                            v[4].push(pos);
                    }
                    int prev = -1;
                    for(int i=0;i<5;i++){
                        int size = v[i].size();
                        // out.println("v["+i+"]"+" size="+size);
                        if(size>0 && size%2!=0){
                            if(prev==-1)
                                prev = v[i].pop();
                            else{
                                Solver.Pair temp = new Solver.Pair(prev,v[i].pop());
                                p1.push(temp);
                                // out.PrintWriterln("added to p1-> "+arr[temp.x]+" "+arr[temp.y]);
                                prev=-1;
                            }
                        }
                        while(!v[i].isEmpty()){
                            int x = v[i].pop();
                            int y = v[i].pop();
                            Solver.Pair temp = new Solver.Pair(x,y);
                            p2.push(temp);
                            // out.println("added to p2-> "+arr[temp.x]+" "+arr[temp.y]);
                        }
                    }
                }
                // out.println("p1=");
                // Solver.Pair aa[] = p1.toArray();
                // for(int i=0;i<aa.length;i++){
                //     out.println(arr[(aa[i]).x]+" "+arr[(aa[i]).y]);
                // }
                // // out.println(p1.toArray());
                // out.println("p2=");
                // Solver.Pair ab[] = (Solver.Pair)p2.toArray();
                // for(int i=0;i<ab.length;i++){
                //     out.println(arr[(ab[i].x)]+" "+arr[(ab[i]).y]);
                // }
                
                // out.println(p2.toArray());
                ArrayList<Solver.Pair> res = new ArrayList<Solver.Pair>();
                while(!p1.isEmpty() && !p2.isEmpty()){
                    Solver.Pair a = p1.pop();
                    Solver.Pair b = p2.pop();
                    res.add(new Solver.Pair(a.x,b.x));
                    res.add(new Solver.Pair(a.y,b.y));
                }
                if(p2.size()%2!=0)
                    p2.pop();
                while(!p2.isEmpty()){
                    Solver.Pair a = p2.pop();
                    Solver.Pair b = p2.pop();
                    res.add(new Solver.Pair(a.x,b.x));
                    res.add(new Solver.Pair(a.y,b.y));    
                }
                int resSize = res.size();
                out.println(resSize/2);
                for(int i=0;i<resSize;i++){
                    out.println(arr[res.get(i).x]+" "+arr[res.get(i).y]);
                }

            }   
        } 
        static class InputReader {
            public BufferedReader reader;
            public StringTokenizer tokenizer;

            public InputReader(InputStream stream) {
                reader = new BufferedReader(new InputStreamReader(stream), 32768);
                tokenizer = null;
            }

            public String next() {
                while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                    try {
                        tokenizer = new StringTokenizer(reader.readLine());
                    } catch (IOException e) {
                        throw new RuntimeException(e);
                    }
                }
                return tokenizer.nextToken();
            }

            public long nextLong() {
                return Long.parseLong(next());
            }
            public int nextInt() {
                return Integer.parseInt(next());
            }
        }
    }