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

/* abhi2601 */

public class Q1 implements Runnable{

    final static long mod = (long)1e9 + 7;
    class Pair{
        String a,b;
        Pair(String a, String  b){
            this.a=a;
            this.b=b;
        }
        /*public int compareTo(Pair p){
            return this.b-p.b;
        }*/
    }
    public void run(){
        InputReader sc = new InputReader(System.in);
        //BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        PrintWriter w = new PrintWriter(System.out);
        int n=sc.nextInt();
        int cnt[][]=new int[1000005][5];
        ArrayList<ArrayList<String>> al[]=new ArrayList[1000005];
        for(int i=0;i<1000005;i++){
            al[i]=new ArrayList<>();
            for(int j=0;j<5;j++){
                ArrayList<String>temp=new ArrayList<>();
                al[i].add(temp);
            }
        }
        char vo[]={'a','e','i','o','u'};
        int max=0;
        for(int i=0;i<n;i++){
            String s=sc.next();
            int c=0;
            char l='a';
            for(int j=0;j<s.length();j++){
                for(int k=0;k<5;k++){
                    if(s.charAt(j)==vo[k]){
                        l=vo[k];
                        c++;
                        break;
                    }
                }
            }
            max=Math.max(max,c);
            if(l=='a') al[c].get(0).add(s);
            else if(l=='e') al[c].get(1).add(s);
            else if(l=='i') al[c].get(2).add(s);
            else if(l=='o') al[c].get(3).add(s);
            else if(l=='u') al[c].get(4).add(s);
        }
        ArrayList<Pair>same=new ArrayList<>();
        ArrayList<Pair>other=new ArrayList<>();
        ArrayList<String>z[]=new ArrayList[max+1];
        for(int i=0;i<=max;i++) z[i]=new ArrayList<>();
        for(int i=1;i<=max;i++){
            for(int j=0;j<5;j++){
                if(al[i].get(j).size()>=2){
                    for(int k=0;k<al[i].get(j).size()-1;k+=2){
                        same.add(new Pair(al[i].get(j).get(k),al[i].get(j).get(k+1)));
                    }
                }
                int l=al[i].get(j).size();
                if(l%2==1) z[i].add(al[i].get(j).get(l-1));
            }
            for(int j=0;j<z[i].size()-1;j+=2) other.add(new Pair(z[i].get(j),z[i].get(j+1)));
        }
        long ans;
        if(same.size()<=other.size()) ans=same.size();
        else ans=(same.size()+other.size())/2;
        w.println(ans);
        if(same.size()<=other.size()){
            for(int i=0;i< same.size();i++){
                w.println(other.get(i).a+" "+same.get(i).a);
                w.println(other.get(i).b+" "+same.get(i).b);
            }
        }
        else{
            int i;
            for(i=0;i<other.size();i++){
                w.println(other.get(i).a+" "+same.get(i).a);
                w.println(other.get(i).b+" "+same.get(i).b);
            }
            for(int j=i;j< same.size()-1;j+=2){
                w.println(same.get(j).a+" "+same.get(j+1).a);
                w.println(same.get(j).b+" "+same.get(j+1).b);
            }
        }
        w.close();
    }
    /*static class Comp implements Comparator<String>{
        public int compare(String x,String y){
            return x.length()-y.length();
        }
    }*/
    //static PrintWriter w;
    /*File in=new File("input.txt");
        File out=new File("output.txt");
        Scanner sc= null;
        try {
            sc = new Scanner(in);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        try {
            w=new PrintWriter(out);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }*/
    static class InputReader {

        private InputStream stream;
        private byte[] buf = new byte[1024];
        private int curChar;
        private int numChars;
        private SpaceCharFilter filter;

        public InputReader(InputStream stream)
        {
            this.stream = stream;
        }

        public int read()
        {
            if (numChars==-1)
                throw new InputMismatchException();

            if (curChar >= numChars)
            {
                curChar = 0;
                try
                {
                    numChars = stream.read(buf);
                }
                catch (IOException e)
                {
                    throw new InputMismatchException();
                }

                if(numChars <= 0)
                    return -1;
            }
            return buf[curChar++];
        }

        public String nextLine()
        {
            BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
        public int nextInt()
        {
            int c = read();

            while(isSpaceChar(c))
                c = read();

            int sgn = 1;

            if (c == '-')
            {
                sgn = -1;
                c = read();
            }

            int res = 0;
            do
            {
                if(c<'0'||c>'9')
                    throw new InputMismatchException();
                res *= 10;
                res += c - '0';
                c = read();
            }
            while (!isSpaceChar(c));

            return res * sgn;
        }

        public long nextLong()
        {
            int c = read();
            while (isSpaceChar(c))
                c = read();
            int sgn = 1;
            if (c == '-')
            {
                sgn = -1;
                c = read();
            }
            long res = 0;

            do
            {
                if (c < '0' || c > '9')
                    throw new InputMismatchException();
                res *= 10;
                res += c - '0';
                c = read();
            }
            while (!isSpaceChar(c));
            return res * sgn;
        }

        public double nextDouble()
        {
            int c = read();
            while (isSpaceChar(c))
                c = read();
            int sgn = 1;
            if (c == '-')
            {
                sgn = -1;
                c = read();
            }
            double res = 0;
            while (!isSpaceChar(c) && c != '.')
            {
                if (c == 'e' || c == 'E')
                    return res * Math.pow(10, nextInt());
                if (c < '0' || c > '9')
                    throw new InputMismatchException();
                res *= 10;
                res += c - '0';
                c = read();
            }
            if (c == '.')
            {
                c = read();
                double m = 1;
                while (!isSpaceChar(c))
                {
                    if (c == 'e' || c == 'E')
                        return res * Math.pow(10, nextInt());
                    if (c < '0' || c > '9')
                        throw new InputMismatchException();
                    m /= 10;
                    res += (c - '0') * m;
                    c = read();
                }
            }
            return res * sgn;
        }

        public String readString()
        {
            int c = read();
            while (isSpaceChar(c))
                c = read();
            StringBuilder res = new StringBuilder();
            do
            {
                res.appendCodePoint(c);
                c = read();
            }
            while (!isSpaceChar(c));

            return res.toString();
        }

        public boolean isSpaceChar(int c)
        {
            if (filter != null)
                return filter.isSpaceChar(c);
            return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
        }

        public String next()
        {
            return readString();
        }

        public interface SpaceCharFilter
        {
            public boolean isSpaceChar(int ch);
        }
    }

    public static void main(String args[]) throws Exception
    {
        new Thread(null, new Q1(),"q1",1<<26).start();
    }
}