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 javax.accessibility.AccessibleRole;
import java.io.*;
import java.lang.reflect.Array;
import java.util.*;
import java.math.*;
import java.lang.*;

import static java.lang.Math.*;

public class TaskE implements Runnable {
    PrintWriter w;
    InputReader c;
    long mod = (int)1e9 + 7;
    HashMap<Character,Integer> vowel = new HashMap<>();
    public void run() {
        c = new InputReader(System.in);
        w = new PrintWriter(System.out);

        vowel = new HashMap<>();
        vowel.put('a',0);
        vowel.put('e',1);
        vowel.put('i',2);
        vowel.put('o',3);
        vowel.put('u',4);

        int n = c.nextInt();
        String s[] = new String[n];
        for(int i=0;i<n;i++) {
            s[i] = c.next();
        }

        ArrayList<Integer> cn = new ArrayList<>();
        HashMap<Integer, help> vowels = new HashMap<>();
        for(int i=0;i<n;i++){
            int cnt = cnt_vowel(s[i]);
            char la_vowel = getLastVowel(s[i]);
            if(vowels.containsKey(cnt)){
                help h = vowels.get(cnt);
                h.add(la_vowel, s[i]);
                vowels.put(cnt,h);
            }
            else{
                help h = new help();
                h.add(la_vowel, s[i]);
                vowels.put(cnt,h);
                cn.add(cnt);
            }
        }

        ArrayList<pair> a1 = new ArrayList<>(), a2 = new ArrayList<>();
        for(int i=0;i<cn.size();i++){
            help h = vowels.get(cn.get(i));
            ArrayList<String> temp = new ArrayList<>();
            for(ArrayList<String> a : h.last_vowel){
                for(int j=0;j+1<a.size();j+=2)
                    a1.add(new pair(a.get(j),a.get(j+1)));
                if(a.size()%2 != 0)
                    temp.add(a.get(a.size()-1));
            }
            for(int j = 0;j+1<temp.size();j+=2)
                a2.add(new pair(temp.get(j),temp.get(j+1)));
        }

        int ptr = 0;
        int ans = 0;
        if(a1.size()>=a2.size()) ans = a2.size() + (a1.size()-a2.size())/2;
        else ans = a1.size();
        w.println(ans);
        for(int i=0;i<a2.size()&&ptr<a1.size();i++,ptr++){
            pair p1 = a1.get(ptr), p2 = a2.get(i);
            w.println(p2.s1+" "+p1.s1);
            w.println(p2.s2+" "+p1.s2);
        }
        while (ptr+1<a1.size()){
            pair p1 = a1.get(ptr), p2 = a1.get(ptr+1);
            w.println(p2.s1+" "+p1.s1);
            w.println(p2.s2+" "+p1.s2);
            ptr+=2;
        }
        w.close();
    }

    class pair{
        String s1,s2;

        @Override
        public String toString() {
            return "pair{" +
                    "s1='" + s1 + '\'' +
                    ", s2='" + s2 + '\'' +
                    '}';
        }

        public pair(String s1, String s2) {
            this.s1 = s1;
            this.s2 = s2;
        }
    }
    private char getLastVowel(String s) {
        char last_vowel = '$';
        for(int i=s.length()-1;i>=0;i--)
            if(vowel.containsKey(s.charAt(i)))
                return s.charAt(i);
        return '*';
    }
    private int cnt_vowel(String s) {
        int cnt = 0;
        for(int i=0;i<s.length();i++)
            if(vowel.containsKey(s.charAt(i)))
                cnt++;
        return cnt;
    }

    class help {
        ArrayList<String> last_vowel[];
        help(){
            last_vowel = new ArrayList[5];
            for(int i=0;i<5;i++)
                last_vowel[i] = new ArrayList<>();
        }

        @Override
        public String toString() {
            return "help{" +
                    "last_vowel=" + Arrays.toString(last_vowel) +
                    '}';
        }

        void add(char vov, String s){
            int ind = vowel.get(vov);
            last_vowel[ind].add(s);
        }
    }

    public static int[] radixSort(int[] f) {
        int[] to = new int[f.length];
        {
            int[] b = new int[65537];
            for(int i = 0;i < f.length;i++)b[1+(f[i]&0xffff)]++;
            for(int i = 1;i <= 65536;i++)b[i]+=b[i-1];
            for(int i = 0;i < f.length;i++)to[b[f[i]&0xffff]++] = f[i];
            int[] d = f; f = to;to = d;
        }
        {
            int[] b = new int[65537];
            for(int i = 0;i < f.length;i++)b[1+(f[i]>>>16)]++;
            for(int i = 1;i <= 65536;i++)b[i]+=b[i-1];
            for(int i = 0;i < f.length;i++)to[b[f[i]>>>16]++] = f[i];
            int[] d = f; f = to;to = d;
        }
        return f;
    }
    public void printArray(int[] a){
        for(int i=0;i<a.length;i++)
            w.print(a[i]+" ");
        w.println();
    }
    public int[] scanArrayI(int n){
        int a[] = new int[n];
        for(int i=0;i<n;i++)
            a[i] = c.nextInt();
        return a;
    }
    public long[] scanArrayL(int n){
        long a[] = new long[n];
        for(int i=0;i<n;i++)
            a[i] = c.nextLong();
        return a;
    }
    public void printArray(long[] a){
        for(int i=0;i<a.length;i++)
            w.print(a[i]+" ");
        w.println();
    }
    static class InputReader {
        private InputStream stream;
        private byte[] buf = new byte[1024];
        private int curChar;
        private int numChars;
        private SpaceCharFilter filter;
        private BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        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() {
            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);
        }
    }
    long power(long x, long y, long p){
        long res = 1;
        x = x % p;
        while (y > 0)
        {
            if((y & 1)==1)
                res = (res * x) % p;
            y = y >> 1;
            x = (x * x) % p;
        }
        return res;
    }
    public static void main(String args[]) throws Exception {
        new Thread(null, new TaskE(),"TaskE",1<<26).start();
    }
}