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

public class Solution 
{
	static class InputReader
	{
	    private final InputStream stream;
	    private final byte[] buf = new byte[8192];
	    private int curChar, snumChars;

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

	    public int read() {
	      if (snumChars == -1)
	        throw new InputMismatchException();
	      if (curChar >= snumChars) {
	        curChar = 0;
	        try {
	          snumChars = stream.read(buf);
	        } catch (IOException e) {
	          throw new InputMismatchException();
	        }
	        if (snumChars <= 0)
	          return -1;
	      }
	      return buf[curChar++];
	    }

	    public int nextInt() {
	      int c = read();
	      while (isSpaceChar(c)) {
	        c = read();
	      }
	      int sgn = 1;
	      if (c == '-') {
	        sgn = -1;
	        c = read();
	      }
	      int res = 0;
	      do {
	        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 {
	        res *= 10;
	        res += c - '0';
	        c = read();
	      } while (!isSpaceChar(c));
	      return res * sgn;
	    }

	    public int[] nextIntArray(int n) {
	      int a[] = new int[n];
	      for (int i = 0; i < n; i++) {
	        a[i] = nextInt();
	      }
	      return a;
	    }

	    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 String nextLine() {
	      int c = read();
	      while (isSpaceChar(c))
	        c = read();
	      StringBuilder res = new StringBuilder();
	      do {
	        res.appendCodePoint(c);
	        c = read();
	      } while (!isEndOfLine(c));
	      return res.toString();
	    }

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

	    private boolean isEndOfLine(int c) {
	      return c == '\n' || c == '\r' || c == -1;
	    }
	}
 	public static class node
    {
        String str;
        char last;
        int count;
        public node(String s, int c, char t)
        {
            this.str = s;
            this.count = c;
            this.last = t;
        }
    }
    public static class ans
    {
        String[][] q;
        public ans(String a, String b, String c, String d)
        {
            q = new String[2][2];
            q[0][0] = a;q[0][1] = b;
            q[1][0] = c;q[1][1] = d;
        }
    }
    public static class pair
    {
        node a;
        node b;
        public pair(node a,node b)
        {
            this.a = a;
            this.b = b;
        }
    }
    public static void main(String[] args) throws IOException 
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out);
        int n = Integer.parseInt(br.readLine());
        String[] arr = new String[n];
        node[] brr = new node[n];
        HashMap<Character, ArrayList<node>> map = new HashMap<>();
        for(int i = 0; i < n ;i++)
        {
            arr[i] = (br.readLine()).trim();
            int count = 0;
            char temp = 'a';
            for(int j = 0; j < arr[i].length(); j++)
            {
                char g = arr[i].charAt(j);
                if(g == 'a' || g == 'i' || g == 'o'|| g == 'e' || g == 'u')
                {
                    temp = g;
                    count++;
                }
            }
            //System.out.println(count + " " + temp);
            brr[i] = new node(arr[i], count, temp);
            if(map.containsKey(temp))
            {
                ArrayList<node> d = map.get(temp);
                d.add(brr[i]);
                map.put(temp, d);
            }
            else
            {
                ArrayList<node> d = new ArrayList<>();
                d.add(brr[i]);
                map.put(temp, d);
            }
        }
        if(n < 4)
        {
            out.println("0");
            out.close();
            return;
        }
        HashMap<Integer, ArrayList<node>>[] crr = new HashMap[27];
        for(int i = 0; i < 27; i++)
        {
           crr[i] = new HashMap<>();
        }
        for(Character keys : map.keySet())
        {
            ArrayList<node> d = map.get(keys);
            int ind = keys - 'a' + 1;
            //  System.out.println(ind + " " + d.size());
            for(int i = 0; i < d.size(); i++)
            {
                node h = d.get(i);
                if(crr[ind].containsKey(h.count))
                {
                    ArrayList<node> p = crr[ind].get(h.count);
                    p.add(h);
                    crr[ind].put(h.count, p);
                }
                else
                {
                    ArrayList<node> p = new ArrayList<>();
                    p.add(h);
                    crr[ind].put(h.count, p);

                }
            }
        }
        ArrayList<pair> drr = new ArrayList<>();
        HashMap<Integer, ArrayList<node>> map2 = new HashMap<>();
        for(int i = 0; i < 27; i++)
        {
            //System.out.print(i + " --> ");
            for(Integer keys : crr[i].keySet())
            {
                ArrayList<node> d = crr[i].get(keys);
                //System.out.print(keys + " " + d.size());
                for(int j = 0; j < d.size() - 1; j+= 2)
                {
                    drr.add(new pair(d.get(j), d.get(j + 1)));
                }
                if(d.size() % 2 != 0)
                {
                    node h = d.get(d.size() - 1);
                    if(map2.containsKey(h.count))
                    {
                        ArrayList<node> w = map2.get(h.count);
                        w.add(h);
                        map2.put(h.count, w);
                    }
                    else
                    {
                        ArrayList<node> w = new ArrayList<>();
                        w.add(h);
                        map2.put(h.count, w);
                    }
                }
            }
            //System.out.println();
        }
        ArrayList<pair> err = new ArrayList<>();
        for(Integer keys : map2.keySet())
        {
            ArrayList<node> d = map2.get(keys);
            for(int i = 0; i < d.size() - 1; i+=2)
            {
                err.add(new pair(d.get(i),d.get(i + 1)));
            }
        }
        //System.out.println(drr.size() + " " + err.size());
        int f = 0, v = 0;
        ArrayList<ans> frr = new ArrayList<>();
        while(f < err.size() && v < drr.size())
        {
            String a = err.get(f).a.str;
            String b = err.get(f).b.str;
            String c = drr.get(v).a.str;
            String d = drr.get(v).b.str;
            ans t = new ans(a,c,b,d);
            frr.add(t);
            f++;
            v++;
        }
        while(v < drr.size() - 1)
        {
            String a = drr.get(v).a.str;
            String b = drr.get(v).b.str;
            String c = drr.get(v + 1).a.str;
            String d = drr.get(v + 1).b.str;
            ans t = new ans(a,c,b,d);
            frr.add(t);
            v+=2;
        }
        out.println(frr.size());
        for(int i = 0; i < frr.size(); i++)
        {
            String[][] q = frr.get(i).q;
            out.println(q[0][0] + " " + q[0][1]);
            out.println(q[1][0] + " " + q[1][1]);
        }
        out.close();
    }
}