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.*;
import java.util.*;
import java.math.*;
public class work
{
    static FastReader s;;
    static int dp[];
    static int n;
    static class String_pair
    {
        String a,b;
        String_pair(String x, String y)
        {
            a=x;
            b=y;
        }
    }
    public static void main(String[] args) throws IOException
    {
        
        s = new FastReader();
        
        
            int n = s.ni();
            HashMap<Integer, HashMap<Character,ArrayList<String>>> hm= new HashMap<>();
            for (int i = 0; i < n; i++)
            {
                String str = s.next();
                int count = vowel(str);
                char last = last(str);
                if (hm.containsKey(count))
                {
                    if(hm.get(count).containsKey(last))
                    {
                        ArrayList<String> list = hm.get(count).get(last);
                        list.add(str);
                        hm.get(count).put(last, list);
                    }
                    else
                    {
                        ArrayList<String> list = new ArrayList<>();
                        list.add(str);
                        hm.get(count).put(last, list);
                    }
                }
                else
                {
                    HashMap<Character, ArrayList<String>> temp = new HashMap<>();
                    ArrayList<String> list = new ArrayList<>();
                    list.add(str);
                    temp.put(last, list);
                    hm.put(count,temp);
                }
            }

            ArrayList<String_pair> complete= new ArrayList<>();
            ArrayList<String_pair> semi_complete= new ArrayList<>();


            for (HashMap<Character, ArrayList<String>> y : hm.values())
            {
                for(ArrayList<String> x :y.values())
                {
                    while(x.size()>=2)
                    {
                        String firstline = x.get(x.size()-1);
                        x.remove(x.size()-1);
                        String secondline = x.get(x.size()-1);
                        x.remove(x.size()-1);
                        complete.add(new String_pair(firstline, secondline));
                    }
                }

                ArrayList<String>rem=new ArrayList<>();
                for(ArrayList<String> x:y.values())
                {
                    for(String word:x)
                    {
                        rem.add(word);
                    }
                }
                while(rem.size()>=2)
                {
                    String firstline = rem.get(rem.size()-1);
                    rem.remove(rem.size()-1);
                    String secondline = rem.get(rem.size()-1);
                    rem.remove(rem.size()-1);
                    semi_complete.add(new String_pair(firstline, secondline));
                }
            }

            ArrayList<String_pair>ans=new ArrayList<>();
            while(complete.size()>0&&semi_complete.size()>0)
            {
                String_pair first = complete.get((complete.size()-1));
                complete.remove(complete.size()-1);
                String_pair second = semi_complete.get((semi_complete.size()-1));
                semi_complete.remove(semi_complete.size()-1);
                String_pair firstline=new String_pair(second.a,first.a);
                String_pair secondline=new String_pair(second.b,first.b);
                ans.add(firstline);
                ans.add(secondline);
                
            }
            while(complete.size()>=2)
            {
                String_pair first = complete.get((complete.size()-1));
                complete.remove(complete.size()-1);
                String_pair second = complete.get((complete.size()-1));
                complete.remove(complete.size()-1);
                String_pair firstline=new String_pair(second.a,first.a);
                String_pair secondline=new String_pair(second.b,first.b);
                ans.add(firstline);
                ans.add(secondline);
            }
            println(ans.size()/2);
            for(String_pair x:ans)
            {
                println(x.a+" "+x.b);
            }

    }   
    
    static Character last(String str)
    {
        char c = '0';
        for (int i = 0; i < str.length(); i++)
        {
            if (str.charAt(i) == 'a')
                c = 'a';
            if (str.charAt(i) == 'e')
                c = 'e';
            if (str.charAt(i) == 'i')
                c = 'i';
            if (str.charAt(i) == 'o')
                c = 'o';
            if (str.charAt(i) == 'u')
                c = 'u';
            
        }
        return c;
    }
    static boolean isVowel(char ch) 
    { 
        ch = Character.toUpperCase(ch); 
        return (ch=='A' || ch=='E' || ch=='I' || 
                           ch=='O' || ch=='U'); 
    } 
       
    // Returns count of vowels in str 
    static int vowel(String str) 
    { 
        int count = 0; 
        for (int i = 0; i < str.length(); i++) 
            if (isVowel(str.charAt(i))) 
                ++count; 
        return count; 
    } 

    static void dfs(int i, int vis[], int src, String str, int val)
    {
        vis[i] = 1;
        String ssp[] = str.split(" ");
        int u = Integer.parseInt(ssp[0]);
        
            if (vis[i] == 0)
            {
                int v = i;
               
                dfs(i, vis, src, str+" ", val);
            }
        
    }

    static class FastReader
    {

        BufferedReader br;
        StringTokenizer st;

        public FastReader()
        {
            br = new BufferedReader(new InputStreamReader(System.in));
        }
        public FastReader(String file_name) throws IOException
        {
            br = new BufferedReader(new FileReader(file_name));
        }
        String next()
        {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int ni()
        {
            return Integer.parseInt(next());
        }

        long nl()
        {
            return Long.parseLong(next());
        }

        double nextDouble()
        {
            return Double.parseDouble(next());
        }

        String nextLine()
        {
            String str = "";
            try
            {
                str = br.readLine();
            } catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
        
    }
    static void println(Object line) 
    {
        System.out.println(line);
    }
    static void print(Object line) 
    {
        System.out.print(line);
    }
    static Integer[] iarr(int n)
    {
        Integer arr[]=new Integer[n];
        for(int i = 0; i < n;i++)
            arr[i]=s.ni();
        return arr;
    }

    static Long[] larr(int n)
    {
        Long arr[]=new Long[n];
        for(int i = 0; i < n;i++)
            arr[i]=s.nl();
        return arr;
    }

    static Integer[][] i2arr(int n, int m)
    {
        Integer arr[][]=new Integer[n][m];
        for(int i = 0; i < n;i++)
            for(int j = 0; j < m;j++)
                arr[i][j]=s.ni();
        return arr;
    }

    static Long[][] l2arr(int n, int m)
    {
        Long arr[][]=new Long[n][m];
        for(int i = 0; i < n;i++)
            for(int j = 0; j < m;j++)
                arr[i][j]=s.nl();
        return arr;
    }
}