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.
import java.io.*;
import java.util.*;

public class l{
    ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////                                                                                                               /////////
////////                                                                                                               /////////
////////   HHHH        HHHH  EEEEEEEEEEEEE   MMMM          MMMM         OOOOOO             SSSSSSS      EEEEEEEEEEEEE  /////////
////////   HHHH        HHHH  EEEEEEEEEEEEE   MMMMMM      MMMMMM      OOO      OOO        SSSS   SSS     EEEEEEEEEEEEE  /////////
////////   HHHH        HHHH  EEEEE           MMMM MMM  MMM MMMM    OOO          OOO    SSSS       SSS   EEEEE          /////////
////////   HHHH        HHHH  EEEEE           MMMM  MMMMMM  MMMM   OOO            OOO   SSSS             EEEEE          /////////
////////   HHHH        HHHH  EEEEE           MMMM          MMMM  OOO              OOO   SSSSSSS         EEEEE          /////////
////////   HHHHHHHHHHHHHHHH  EEEEEEEEEEE     MMMM          MMMM  OOO              OOO      SSSSSS       EEEEEEEEEEE    /////////
////////   HHHHHHHHHHHHHHHH  EEEEEEEEEEE     MMMM          MMMM  OOO              OOO         SSSSSSS   EEEEEEEEEEE    /////////
////////   HHHH        HHHH  EEEEE           MMMM          MMMM   OOO            OOO              SSSS  EEEEE          /////////
////////   HHHH        HHHH  EEEEE           MMMM          MMMM    OOO          OOO     SSS       SSSS  EEEEE          /////////
////////   HHHH        HHHH  EEEEEEEEEEEEE   MMMM          MMMM      OOO      OOO        SSS    SSSS    EEEEEEEEEEEEE  /////////
////////   HHHH        HHHH  EEEEEEEEEEEEE   MMMM          MMMM         OOOOOO             SSSSSSS      EEEEEEEEEEEEE  /////////
////////                                                                                                               /////////
////////                                                                                                               /////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    static char[][]arr;
    static boolean isgood(int i ,int j){
        return i>0&&i<arr.length-1&&j>0&&j<arr[0].length-1&&arr[i][j]=='*'&&arr[i][j-1]=='*'&&arr[i][j+1]=='*'&&arr[i+1][j]=='*'&&arr[i-1][j]=='*';
    }
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        PrintWriter pw = new PrintWriter(System.out);
        char[]vowels= {'a','e','i','u','o'};
        HashMap<Character,Integer>idx= new HashMap<>();
        for (int i =0;i<5;i++){
            idx.put(vowels[i],i);
        }
        Queue<String>[][]in= new LinkedList[6][1000000+1];
        for (Queue[]a:in){
            for (int i =0;i<a.length;i++){
                a[i]= new LinkedList();
            }
        }
        int n = sc.nextInt();
        while (n-->0){
            String s = sc.nextLine();
            int vo=0;
            int end=5;
            for (int i =0;i<s.length();i++){
                if (idx.containsKey(s.charAt(i))){
                    vo++;
                    end=idx.get(s.charAt(i));
                }
            }
            in[end][vo].add(s);
        }
        Queue<String>last= new LinkedList<>();
        Queue<String>eq= new LinkedList<>();
        for (int i =0;i<1000001;i++){
            for (int j =0;j<5;j++){
                if (!in[j][i].isEmpty()){
                    while (in[j][i].size()>1){
                        ((LinkedList<String>) last).add(in[j][i].poll());
                        ((LinkedList<String>) last).add(in[j][i].poll());
                    }
                }
            }
        }
        while (in[5][0].size()>1){
            ((LinkedList<String>) last).add(in[5][0].poll());
            ((LinkedList<String>) last).add(in[5][0].poll());
        }
            for (int i =0;i<1000001;i++){
            Queue<String>q1= new LinkedList<>();
                for (int j =0;j<5;j++){
                    while (in[j][i].size()>0){
                        q1.add(in[j][i].poll());
                    }
                }
                while (q1.size()>1){
                    ((LinkedList<String>) eq).add(q1.poll());
                    ((LinkedList<String>) eq).add(q1.poll());
                }
            }
        LinkedList<StringBuilder>ans= new LinkedList<>();
       // pw.println(eq);
        while (last.size()>1&&eq.size()>1){
            StringBuilder sb = new StringBuilder();
            sb.append(eq.poll());
            sb.append(" ");
            sb.append(last.poll());
            sb.append("\n");
            sb.append(eq.poll());
            sb.append(" ");
            sb.append(last.poll());
            sb.append("\n");
            ans.add(sb);
        }
        while (last.size()>3){
            StringBuilder sb = new StringBuilder();
            sb.append(last.poll());
            sb.append(" ");
            String x =last.poll();
            sb.append(last.poll());
            sb.append("\n");
            sb.append(x);
            sb.append(" ");
            sb.append(last.poll());
            sb.append("\n");
            ans.add(sb);
        }
        pw.println(ans.size());
        while (!ans.isEmpty()){
            pw.print(ans.pollFirst());
        }
        pw.flush();
    }

    static class Scanner
    {
        StringTokenizer st;
        BufferedReader br;
        public Scanner(FileReader r){
            br= new BufferedReader(r);
        }
        public Scanner(InputStream s){	br = new BufferedReader(new InputStreamReader(s));}

        public String next() throws IOException
        {
            while (st == null || !st.hasMoreTokens())
                st = new StringTokenizer(br.readLine());
            return st.nextToken();
        }

        public int nextInt() throws IOException {return Integer.parseInt(next());}

        public long nextLong() throws IOException {return Long.parseLong(next());}

        public String nextLine() throws IOException {return br.readLine();}

        public double nextDouble() throws IOException
        {
            String x = next();
            StringBuilder sb = new StringBuilder("0");
            double res = 0, f = 1;
            boolean dec = false, neg = false;
            int start = 0;
            if(x.charAt(0) == '-')
            {
                neg = true;
                start++;
            }
            for(int i = start; i < x.length(); i++)
                if(x.charAt(i) == '.')
                {
                    res = Long.parseLong(sb.toString());
                    sb = new StringBuilder("0");
                    dec = true;
                }
                else
                {
                    sb.append(x.charAt(i));
                    if(dec)
                        f *= 10;
                }
            res += Long.parseLong(sb.toString()) / f;
            return res * (neg?-1:1);
        }

        public boolean ready() throws IOException {return br.ready();}


    }
}