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.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Scanner;

public class Solution {

    public static void main(String[] args)throws IOException {
        StringBuilder sb = new StringBuilder();
        FastReader in=new FastReader(System.in);
        int i,j,f=0,k,t1,t2,x,l,val,l1,z;
        String s;
        char ch,ch1='a';
        int n=in.nextInt();
        ArrayList<Integer> arr[]=new ArrayList[1000001];
        for(i=1;i<=1000000;i++)
            arr[i]=new ArrayList<Integer>();
        HashSet<Integer> set=new HashSet<Integer>();
        char vovel[]=new char[n];
        ArrayList<Integer> freq[]=new ArrayList[5];
        String str[]=new String[n];
        for(i=0;i<n;i++)
        {
            s=in.nextLine();
            str[i]=s;
            x=0;
            for(j=0;j<s.length();j++)
            {
                ch=s.charAt(j);
                if(ch=='a' || ch=='e' || ch=='i' || ch=='o' || ch=='u')
                {
                    ch1=ch;
                    x++;
                }
            }
            set.add(x);
            arr[x].add(i);
            vovel[i]=ch1;
        }
        char ser[]={'a','e','i','o','u'};
        int second=0,first=0;
        ArrayList<Integer> word1=new ArrayList<>();
        ArrayList<Integer> word2=new ArrayList<>();
        for(Integer key :set)
        {
            x=(int)key;
            val=0;
            l=arr[x].size();
            for(i=0;i<5;i++)
                freq[i]=new ArrayList();
            for(i=0;i<l;i++)
            {
                ch=vovel[arr[x].get(i)];
                for(j=0;j<5;j++)
                {
                    if(ch==ser[j]) {
                        freq[j].add(arr[x].get(i));
                        break;
                    }
                }
            }
            for(i=0;i<5;i++)
            {
                l1=freq[i].size();
                val+=l1/2;
                for(j=0;j<(l1/2)*2;j++)
                {
                    word2.add(freq[i].get(j));
                }

            }
            k=l-val*2;
            z=0;
            if(k!=0) {
                for (i = 0; i < 5; i++) {
                    if (z == (k - 1) && k % 2 == 1)
                        break;
                    l1 = freq[i].size();
                    if (l1 % 2 == 0)
                        continue;
                    word1.add(freq[i].get(l1 - 1));
                    z++;
                }
            }
            first+=(l-val*2)/2;
            second+=val;
        }
        if(first>=second)
        {
            System.out.println(second);
            for(i=0;i<second*2;i+=2)
            {
                sb.append(str[word1.get(i)]+" "+str[word2.get(i)]).append("\n");
                sb.append(str[word1.get(i+1)]+" "+str[word2.get(i+1)]).append("\n");
            }
            System.out.print(sb);
        }
        else
        {
            System.out.println((first+second)/2);
            x=(second*2)-(first*2);
            x=x/4;
            x=x*4;
            x+=first*2;
            for(i=0;i<first*2;i+=2)
            {
                sb.append(str[word1.get(i)]+" "+str[word2.get(i)]).append("\n");
                sb.append(str[word1.get(i+1)]+" "+str[word2.get(i+1)]).append("\n");
            }
            for(;i<x;i+=4)
            {
                sb.append(str[word2.get(i)]+" "+str[word2.get(i+2)]).append("\n");
                sb.append(str[word2.get(i+1)]+" "+str[word2.get(i+3)]).append("\n");
            }
            System.out.print(sb);
        }
    }
}

class FastReader {

        byte[] buf = new byte[2048];
        int index, total;
        InputStream in;

        FastReader(InputStream is) {
            in = is;
        }

        int scan() throws IOException {
            if (index >= total) {
                index = 0;
                total = in.read(buf);
                if (total <= 0) {
                    return -1;
                }
            }
            return buf[index++];
        }

        String next() throws IOException {
            int c;
            for (c = scan(); c <= 32; c = scan()) ;
            StringBuilder sb = new StringBuilder();
            for (; c > 32; c = scan()) {
                sb.append((char) c);
            }
            return sb.toString();
        }

        String nextLine() throws IOException {
            int c;
            for (c = scan(); c <= 32; c = scan()) ;
            StringBuilder sb = new StringBuilder();
            for (; c != 10 && c != 13; c = scan()) {
                sb.append((char) c);
            }
            return sb.toString();
        }

        char nextChar() throws IOException {
            int c;
            for (c = scan(); c <= 32; c = scan()) ;
            return (char) c;
        }

        int nextInt() throws IOException {
            int c, val = 0;
            for (c = scan(); c <= 32; c = scan()) ;
            boolean neg = c == '-';
            if (c == '-' || c == '+') {
                c = scan();
            }
            for (; c >= '0' && c <= '9'; c = scan()) {
                val = (val << 3) + (val << 1) + (c & 15);
            }
            return neg ? -val : val;
        }

        long nextLong() throws IOException {
            int c;
            long val = 0;
            for (c = scan(); c <= 32; c = scan()) ;
            boolean neg = c == '-';
            if (c == '-' || c == '+') {
                c = scan();
            }
            for (; c >= '0' && c <= '9'; c = scan()) {
                val = (val << 3) + (val << 1) + (c & 15);
            }
            return neg ? -val : val;
        }
    }