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.io.*;
import java.text.*;
public class Main{
    //SOLUTION BEGIN
    void pre() throws Exception{}
    void solve(int TC) throws Exception{
        int n = ni();
        TreeSet<Pair> t2 = new TreeSet<>();
        HashMap<Integer, String>[] map = new HashMap[5];
        for(int i = 0; i< 5; i++)map[i] = new HashMap<>();        
        for(int i = 0; i< n; i++){
            String s = n();char last = ' ';int cnt = 0;
            for(int j = 0; j< s.length(); j++){
                if(vowel(s.charAt(j))){
                    last = s.charAt(j);
                    cnt++;
                }
            }
            int ch = get(last);
            if(map[ch].containsKey(cnt)){
                String t = map[ch].remove(cnt);
                t2.add(new Pair(t2.size(), s, t));
            }else{
                map[ch].put(cnt, s);
            }
        }
        TreeSet<PP> ans = new TreeSet<>();
        TreeMap<Integer, String> mer = new TreeMap<>();
        int wa = 0;
        for(int i = 0; i< 5; i++){
            for(Map.Entry<Integer, String> e:map[i].entrySet()){
                if(mer.containsKey(e.getKey())){
                    String t = mer.remove(e.getKey());
                    if(!t2.isEmpty()){
                        Pair p = t2.pollFirst();
                        ans.add(new PP(wa++, new Pair(wa++, e.getValue(), p.s1), new Pair(wa++, t, p.s2)));
                    }
                }else mer.put(e.getKey(), e.getValue());
            }
        }
        while(t2.size() >1){
            Pair p1 = t2.pollFirst(), p2 = t2.pollFirst();
            ans.add(new PP(wa++, new Pair(wa++, p1.s1, p2.s1), new Pair(wa++, p1.s2, p2.s2)));
        }
        pn(ans.size());
        for(PP p:ans){
            pn(p.p1.s1+" "+p.p1.s2);
            pn(p.p2.s1+" "+p.p2.s2);   
        }
    }
    int count(String s){
        int ans = 0;
        for(int i = s.length()-1; i>= 0; i--)if(vowel(s.charAt(i)))ans++;
        return ans;
    }
    class Pair implements Comparable<Pair>{
        String s1, s2;int x;
        public Pair(int x, String s, String t){
            s1 = s;s2 = t;this.x = x;
        }
        public int compareTo(Pair p){
            return Integer.compare(x, p.x);
        }
    }
    class PP implements Comparable<PP>{
        Pair p1, p2;int x;
        public PP(int X, Pair P1, Pair P2){
            p1 = P1;p2 = P2;x = X;
        }
        public int compareTo(PP p){return Integer.compare(x, p.x);}
    }
    int get(char c){
        switch(c){
            case 'a':return 0;
            case 'e':return 1;
            case 'i':return 2;
            case 'o':return 3;
            case 'u':return 4;
        }
        return -1;
    }
    boolean vowel(char c){
        return c=='a' || c=='e' || c=='i' || c=='o' || c=='u';
    }
    //SOLUTION END
    void hold(boolean b)throws Exception{if(!b)throw new Exception("Hold right there, Sparky!");}
    long mod = (long)1000000007, IINF = (long)1e18;
    final int INF = (int)1e9, MX = (int)2e5+5;
    DecimalFormat df = new DecimalFormat("0.00000000000");
    double PI = 3.141592653589793238462643383279502884197169399, eps = 1e-8;
    static boolean multipleTC = false, memory = false;
    FastReader in;PrintWriter out;
    void run() throws Exception{
        in = new FastReader();
        out = new PrintWriter(System.out);
        //Solution Credits: Taranpreet Singh
        int T = (multipleTC)?ni():1;
        pre();for(int t = 1; t<= T; t++)solve(t);
        out.flush();
        out.close();
    }
    public static void main(String[] args) throws Exception{
        if(memory)new Thread(null, new Runnable() {public void run(){try{new Main().run();}catch(Exception e){e.printStackTrace();}}}, "1", 1 << 28).start();
        else new Main().run();
    }
    long gcd(long a, long b){return (b==0)?a:gcd(b,a%b);}
    int gcd(int a, int b){return (b==0)?a:gcd(b,a%b);}
    int bit(long n){return (n==0)?0:(1+bit(n&(n-1)));}
    void p(Object o){out.print(o);}
    void pn(Object o){out.println(o);}
    void pni(Object o){out.println(o);out.flush();}
    String n()throws Exception{return in.next();}
    String nln()throws Exception{return in.nextLine();}
    int ni()throws Exception{return Integer.parseInt(in.next());}
    long nl()throws Exception{return Long.parseLong(in.next());}
    double nd()throws Exception{return Double.parseDouble(in.next());}

    class FastReader{
        BufferedReader br;
        StringTokenizer st;
        public FastReader(){
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        public FastReader(String s) throws Exception{
            br = new BufferedReader(new FileReader(s));
        }

        String next() throws Exception{
            while (st == null || !st.hasMoreElements()){
                try{
                    st = new StringTokenizer(br.readLine());
                }catch (IOException  e){
                    throw new Exception(e.toString());
                }
            }
            return st.nextToken();
        }

        String nextLine() throws Exception{
            String str = "";
            try{   
                str = br.readLine();
            }catch (IOException e){
                throw new Exception(e.toString());
            }  
            return str;
        }
    }
}