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

public class Main {
    static class FastScanner {
        private BufferedReader bufferedReader;
        private StringTokenizer stringTokenizer;
        public FastScanner(InputStream inputStream){
            bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
        }
        public String next() {
            while (stringTokenizer == null || !stringTokenizer.hasMoreTokens()){
                try {
                    stringTokenizer = new StringTokenizer(bufferedReader.readLine());
                } catch (IOException ignored){}
            }
            return stringTokenizer.nextToken();
        }
        public int nextInt() {
            return Integer.parseInt(next());
        }
        public long nextLong() {
            return Long.parseLong(next());
        }
        public double nextDouble() {
            return Double.parseDouble(next());
        }
    }

    static class Node implements Comparable {
        Node left;
        Node right;
        private int value;

        Node(Node left, Node right, int value) {
            this.left = left;
            this.right = right;
            this.value = value;
        }

        @Override
        public int compareTo(Object o) {
            return Integer.compare(this.value, ((Node)o).value);
        }
    }

    private static int fib(int n, int m){
        if (n < 2) return n;
        int a = 0;
        int b = 1;
        for (int i=0;i<n-2;i++){
            int c = (a + b) % m;
            a = b;
            b = c;
        }
        return (a + b) % m;
    }

    static long gcd(long a, long b) {
        if (b == 0) return a;
        return gcd(b, a % b);
    }

    static long lcm(long a, long b) {
        return Math.abs(a * b) / gcd(a, b);
    }

    static class DSU {
        private int [] p;
        private int [] r;

        DSU(int n) {
            p = new int[n];
            r = new int[n];
            Arrays.fill(p, -1);
            Arrays.fill(r, 0);
        }

        int find(int x) {
            if (p[x] < 0) {
                return x;
            }
            return p[x] = find(p[x]);
        }

        void union(int a, int b) {
            a = find(a);
            b = find(b);
            if (a == b) return;
            if (r[a] < r[b]) {
                p[a] = b;
            }
            else {
                p[b] = a;
            }
            if (r[a] == r[b]) {
                r[a] ++;
            }
        }
    }

    private static boolean isPrime(long n) {
        for (int i = 2; i < n; i++) {
            if (n % i == 0) return false;
        }
        return true;
    }

    private static double med(Integer[]a) {
        Arrays.sort(a);
        if (a.length % 2 == 0) {
            int r = a.length / 2;
            int l = r-1;
            double s = a[l] + a[r];
            return s / 2.0;
        }
        int m = a.length / 2;
        return a[m];
    }

    static Map<Integer, ArrayList<Integer>>g;
    static Map<Integer, Integer> color;

    static void dfs(int v, int c) {
        color.put(v, c);
        for (int i = 0; i < g.get(v).size(); i++) {
            int u = g.get(v).get(i);
            if (!color.containsKey(u)) {
                dfs(u, c);
            }
        }
    }

    static void reverse(Integer []a) {
        Collections.reverse(Arrays.asList(a));
    }

    static boolean next(Integer []a) {
        int i = a.length - 1;
        while(a[i] == 0) i--;
        int c = 0;
        while(i >= 0 && a[i] == 1) {
            c++;
            i--;
        }
        if (i < 0) return false;
        a[i] = 1;
        for (int j = i + 1; j < a.length; j++) {
            a[j] = 0;
        }
        c--;
        for (int j = 0; j < c; j++) {
            a[a.length - 1 - j] = 1;
        }
        return true;
    }

    private static int bin(Integer []a, int l, int r, int x){
        if (l >= r) return l;
        int m = (l + r) / 2;
        if (a[m] > x) {
            return bin(a, l, m, x);
        }
        else if (a[m] < x || (m < a.length - 1 && a[m+1] == x)){
            return bin(a, m + 1, r, x);
        }
        return m + 1;
    }

    private static class SegmentTree {
        private long []d;
        private long []a;

        SegmentTree(int n) {
            a = new long[n];
            d = new long[5 * n];
        }

        void update(int v, int l, int r, int pos, long val) {
            if (l == r) {
                d[v] += val;
                a[l] += val;
            } else {
                int mid = (l + r) / 2;
                if (pos <= mid) {
                    update(v * 2, l, mid, pos, val);
                } else {
                    update(v * 2 + 1, mid + 1, r, pos, val);
                }
                d[v] = d[v * 2] + d[v * 2 + 1];
            }
        }

        int find(int v, int l, int r, long w) {
            if (v >= d.length) return -1;
            int mid = (l + r) / 2;
            if (d[v] <= w) return r;
            long o = w - d[v * 2];
            if (mid + 1 < a.length && o >= a[mid + 1]) {
                return find(v * 2 + 1, mid + 1, r, o);
            }
            if (w >= a[l])
                return find(v * 2, l, mid, w);
            return -1;
        }

        int iterFind(long w) {
            if (a[0] > w) return -1;
            int l = 0, r = a.length - 1;
            int v = 1;
            while (d[v] > w) {
                int mid = (l + r) / 2;
                long o = w - d[v * 2];
                if (mid + 1 < a.length && o >= a[mid + 1]) {
                    l = mid + 1;
                    v = v * 2 + 1;
                    w = o;
                } else {
                    v = v * 2;
                    r = mid;
                }
            }
            return r;
        }

        int get(int v, int vl, int vr, long w)
        {
            // cout << t[v] << "  "<< v << " " << vl << " " << vr<<" " << w << endl;
            if(d[v] < w) return -1;
            if(vl > vr) return -1;
            if(vl == vr)
            {
                if(d[v] > w) return vl - 1;
                else return -1;
            }
            if(d[v * 2] > w) return get(v * 2, vl, (vl + vr) / 2, w);
            else return get(v * 2 + 1, (vl + vr + 2) / 2, vr, w - d[v * 2]);
        }
    }

    private static class FenwickTree {
        long []t;

        FenwickTree(int n) {
            t = new long[n];
        }

        long sum (int r)
        {
            long result = 0;
            for (; r >= 0; r = (r & (r+1)) - 1)
                result += t[r];
            return result;
        }

        void inc (int i, long delta)
        {
            int n = t.length;
            for (; i < n; i = (i | (i+1)))
                t[i] += delta;
        }
    }

    private static char []glas = new char[]{'a', 'e', 'o', 'i', 'u'};

    private static boolean isGlas(char c){
        for (int i = 0; i < glas.length; i++) {
            if (c == glas[i]) return true;
        }
        return false;
    }

    public static void main(String[] args){
        FastScanner scanner = new FastScanner(System.in);
        PrintWriter printer = new PrintWriter(System.out);
        int n = scanner.nextInt();
        Map<Integer, Map<Character, ArrayList<String>>>map = new HashMap();
        int maxCnt = 0;
        for (int i = 0; i < n; i++) {
            String s = scanner.next();
            char last = '+';
            int cnt = 0;
            for (int j = 0; j < s.length(); j++) {
                if (isGlas(s.charAt(j))) {
                    cnt++;
                    last = s.charAt(j);
                }
            }
            maxCnt = Math.max(maxCnt, cnt);
            if (!map.containsKey(cnt)) {
                Map<Character, ArrayList<String>> m = new HashMap<>();
                for (int j = 0; j < glas.length; j++) {
                    m.put(glas[j], new ArrayList<>());
                }
                map.put(cnt, m);
            }
            map.get(cnt).get(last).add(s);
        }
        ArrayList<String>rs = new ArrayList<>();
        ArrayList<String>ls = new ArrayList<>();
        for (int i = 1; i <= maxCnt; i++) {
            if (map.containsKey(i)) {
                for (int j = 0; j < glas.length; j++) {
                    int k = map.get(i).get(glas[j]).size();
                    int t1 = k / 2;
                    rs.addAll(map.get(i).get(glas[j]).subList(0, t1 * 2));
                    ls.addAll(map.get(i).get(glas[j]).subList(t1 * 2, k));
                }
                if (ls.size() % 2 != 0) {
                    ls.remove(ls.size() - 1);
                }
                if (rs.size() % 2 != 0) {
                    rs.remove(rs.size() - 1);
                }
            }
        }
        StringBuilder ans = new StringBuilder();
        int k = 0;
        int i = 0;
        for (; i + 1 < rs.size() && i + 1 < ls.size(); i += 2) {
            k++;
            ans.append(ls.get(i) + " " + rs.get(i));
            ans.append("\n");
            ans.append(ls.get(i + 1) + " " + rs.get(i + 1));
            ans.append("\n");
        }
        for (; i + 3 < rs.size(); i += 4) {
            k++;
            ans.append(rs.get(i) + " " + rs.get(i + 2));
            ans.append("\n");
            ans.append(rs.get(i + 1) + " " + rs.get(i + 3));
            ans.append("\n");
        }
        printer.println(k);
        printer.println(ans.toString().trim());
        printer.flush();
        printer.close();
    }
}