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.BufferedReader;
import java.io.FileReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.StringTokenizer;
import static java.lang.Math.*;

public class code0 {
    private static boolean oj = System.getProperty("ONLINE_JUDGE") != null;
    private static Reader in;
    private static PrintWriter out;
    ////////////////////////////////////////////////////////////////////////////////////////////////////
    private static int min(int... a){int min=a[0]; for(int i:a) min=Math.min(min, i); return min;}
    private static int max(int... a){int max=a[0]; for(int i:a) max=Math.max(max, i); return max;}
    private static long min(long... a){long min=a[0]; for(long i:a)min=Math.min(min, i); return min;}
    private static long max(long... a){long max=a[0]; for(long i:a)max=Math.max(max, i); return max;}
    private static String strm(String str, long m) {
        String ans="";
        while(m>0) {
            if(m%2==1) ans=ans.concat(str);
            str=str.concat(str); m>>=1;
        } return ans;
    }
    private static long mod(long a, long mod) {long res = a%mod; return res>=0 ? res : res+mod;}
    private static int mod(int a, int mod) {int res = a%mod; return res>=0 ? res : res+mod;}
    private static long modpow(long x, int n, int mod) {
        long res = 1;
        for (long p = x; n > 0; n >>= 1, p = mod((mod(p, mod)*mod(p, mod)),  mod)) {
            if ((n & 1) != 0) res = mod(mod(res, mod) * mod(p, mod), mod);
        }
        return res;
    }
    private static long gcd(long a, long b) {return b == 0 ? Math.abs(a) : gcd(b, a % b);}
    private static int gcd(int a, int b) {return b == 0 ? Math.abs(a) : gcd(b, a % b);}
    private static long gcd(long... a) {long gcd=a[0]; for(long x:a) gcd=gcd(gcd, x); return gcd;}
    private static int gcd(int... a) {int gcd=a[0]; for(int x:a) gcd=gcd(gcd, x); return gcd;}
    private static long lcm(long a, long b) {return Math.abs(a / gcd(a, b) * b);}
    private static class Pair {
        public int x, y;
        public Pair(int x, int y) {
            this.x = x;
            this.y = y;
        }
        @Override
        public boolean equals(Object obj) {
            if (obj == this) return true;
            if (!(obj instanceof Pair)) return false;
            Pair pair = (Pair)obj;
            return this.x == pair.x && this.y == pair.y;
        }
        @Override
        public String toString() {
            return ("(" + this.x + "," + this.y + ")");
        }
        @Override
        public int hashCode() {
            return (this.x+" "+this.y).hashCode();
        }
    }
    private static class Triplet {
        public int x, y, z;
        public Triplet(int x, int y, int z) {
            this.x = x;
            this.y = y;
            this.z = z;
        }
        @Override
        public boolean equals(Object obj) {
            if (obj == this) return true;
            if (!(obj instanceof Triplet)) return false;
            Triplet triplet = (Triplet)obj;
            return this.x == triplet.x && this.y == triplet.y && this.z == triplet.z;
        }
        @Override
        public String toString() {
            return ("(" + this.x + "," + this.y + "," + this.z + ")");
        }
        @Override
        public int hashCode() {
            return (this.x+" "+this.y+" "+this.z).hashCode();
        }
    }
    ////////////////////////////////////////////////////////////////////////////////////////////////////
    static class Reader {
        private BufferedReader br;
        private StringTokenizer token;
        private Reader(FileReader obj) {
            br = new BufferedReader(obj, 32768);
            token = null;
        }
        private Reader() {
            br = new BufferedReader(new InputStreamReader(System.in), 32768);
            token = null;
        }
        private String next() {
            while(token == null || !token.hasMoreTokens()) {
                try {
                    token = new StringTokenizer(br.readLine());
                } catch (Exception e) {e.printStackTrace();}
            } return token.nextToken();
        }
        private String nextLine() {
            String str="";
            try {
                str = br.readLine();
            } catch (Exception e) {e.printStackTrace();}
            return str;
        }
        private int nextInt() {return Integer.parseInt(next());}
        private long nextLong() {return Long.parseLong(next());}
        private double nextDouble() {return Double.parseDouble(next());}
        private long[] nextLongArr(int n) {
            long[] arr = new long[n]; for(int i=0; i<n; i++) arr[i] = nextLong(); return arr;
        }
        private int[] nextIntArr(int n) {
            int[] arr = new int[n]; for(int i=0; i<n; i++) arr[i] = nextInt(); return arr;
        }
    }
    ////////////////////////////////////////////////////////////////////////////////////////////////////
    private static final int mod = 1_000_000_007;
    private static HashSet<Character> vowels = new HashSet<>(Arrays.asList('a', 'e', 'i', 'o', 'u'));
    private static boolean isAVowel(char ch) {
        return vowels.contains(ch);
    }
    private static ArrayList process(String str) {
        int count = 0;
        char lastVowel = (char)0;
        for (int i=0; i<str.length(); i++) {
            if (isAVowel(str.charAt(i))) {count++; lastVowel = str.charAt(i);}
        }
        ArrayList al = new ArrayList<>();
        al.add(count);
        al.add(lastVowel);
        return al;
    }
    private static void solve() throws Exception {
        int n = in.nextInt();
        HashMap<Integer, HashMap<Character, ArrayList<String>>> hm = new HashMap<>();
        for (int i=0; i<n; i++) {
            String str = in.nextLine();
            ArrayList al = process(str);
            int count = (int)al.get(0); char lastVowel = (char)al.get(1);
            if (hm.containsKey(count)) {
                if (hm.get(count).containsKey(lastVowel)) {
                    hm.get(count).get(lastVowel).add(str);
                } else {
                    hm.get(count).put(lastVowel, new ArrayList<>(Arrays.asList(str)));
                }
            } else {
                hm.put(count, new HashMap<Character, ArrayList<String>>());
                hm.get(count).put(lastVowel, new ArrayList<>(Arrays.asList(str)));
            }
        }
        ArrayList<String> left = new ArrayList<>();
        ArrayList<String> right = new ArrayList<>();
        for (Map.Entry<Integer, HashMap<Character, ArrayList<String>>> entry: hm.entrySet()) {
            for(Map.Entry<Character, ArrayList<String>> inner: entry.getValue().entrySet()) {
                Iterator itr = inner.getValue().iterator();
                while (inner.getValue().size() >= 2) {
                    right.add((String)itr.next());
                    itr.remove();
                    right.add((String)itr.next());
                    itr.remove();
                }
            }
        }
        if (right.size() == 0) {out.printf("%d\n", 0); return;}
        HashMap<Integer, HashSet<String>> _hm = new HashMap<>();
        for (Map.Entry<Integer, HashMap<Character, ArrayList<String>>> entry: hm.entrySet()) {
            HashSet<String> temp = new HashSet<>();
            for(Map.Entry<Character, ArrayList<String>> inner: entry.getValue().entrySet()) {
                temp.addAll(inner.getValue());
            }
            _hm.put(entry.getKey(), temp);
        }
        for (Map.Entry<Integer, HashSet<String>> entry: _hm.entrySet()) {
            Iterator itr = entry.getValue().iterator();
            while (entry.getValue().size() >= 2) {
                left.add((String)itr.next());
                itr.remove();
                left.add((String)itr.next());
                itr.remove();
            }
        }
        int _left = left.size(), _right = right.size();
        if (_left >= _right) {
            out.printf("%d\n", _right>>1);
            for (int i=0; i<_right; i++) {
                out.printf("%s %s\n", left.get(i), right.get(i));
            }
        }
        else {
            if (((_right - _left)>>1)%2 != 0) {
                right.remove(right.size()-1);
                right.remove(right.size()-1);
            }
            _right = right.size();
            out.printf("%d\n", ((_left/2) + (_right-_left)/4));
            for (int i=0; i<_left; i++) {
                out.printf("%s %s\n", left.get(i), right.get(i));
            }
            for (int i=_left; i<_right; i++) {
                out.printf("%s %s\n", right.get(i), right.get(i+2));
                out.printf("%s %s\n", right.get(i+1), right.get(i+3));
                i += 3;
            }
        }
    }
    private static void run() throws Exception {
        // in = new Reader();
        // in = new Reader(new FileReader("input.txt"));
        // out = new PrintWriter(new FileWriter("output.txt"));
        in = oj ? new Reader() : new Reader(new FileReader("/home/raiden/Desktop/input.txt"));
        out = new PrintWriter(System.out);
        long ti = System.currentTimeMillis();
        solve(); out.flush();
        if (!oj) System.out.println("\n"+(System.currentTimeMillis()-ti)+"ms");
    }
    public static void main(String[] args) throws Exception {run();}
}