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 tr0 {
	static PrintWriter out;
	static StringBuilder sb;
	static long mod = 1000000007;
	static int inf = 1000000000;
	static long[] fac;
	static int[] si;

// a e o i u
	public static void main(String[] args) throws IOException {
		Scanner sc = new Scanner(System.in);
		out = new PrintWriter(System.out);
		int n=sc.nextInt();
		sb=new StringBuilder();
		int [][]count=new int [1000001][5];
		String []a=new String [n];
		word [][]wordsp=new word[1000001][5];
		int [] count1=new int [1000001];
		ArrayList<dword> alone=new ArrayList();
		ArrayList<dword> q=new ArrayList(); 
		for(int i=0;i<n;i++) {
			String s=sc.nextLine();
			a[i]=s;
			int j=0;
			char o=' ';
			int c=0;
			for(j=0;j<s.length();j++) {
				if(s.charAt(j)=='a') {
					c++;
					o=s.charAt(j);
				}
				else if(s.charAt(j)=='e') {
					c++;
					o=s.charAt(j);
				}
                else if(s.charAt(j)=='o') {
                	c++;
					o=s.charAt(j);
				}
                else if(s.charAt(j)=='i') {
                	c++;
					o=s.charAt(j);
                }
                else if(s.charAt(j)=='u') {
                	c++;
					o=s.charAt(j);
                }
		}
			word w=new word(c, o, s, i);
			if(o=='a') {
				if(count[c][0]%2==1) {
					q.add(new dword(wordsp[c][0].idx, w.idx));
				}
			count[c][0]++;
			wordsp[c][0]=w;
			}
			else if(o=='e') {
				if(count[c][1]%2==1) {
					q.add(new dword(wordsp[c][1].idx, w.idx));
				}
				count[c][1]++;
				wordsp[c][1]=w;
			}
            else if(o=='o') {
            	if(count[c][2]%2==1) {
					q.add(new dword(wordsp[c][2].idx, w.idx));
				}
            	count[c][2]++;
            	wordsp[c][2]=w;
			}
            else if(o=='i') {
            	if(count[c][3]%2==1) {
					q.add(new dword(wordsp[c][3].idx, w.idx));
				}
            	count[c][3]++;
            	wordsp[c][3]=w;
            }
            else if(o=='u') {
            	if(count[c][4]%2==1) {
					q.add(new dword(wordsp[c][4].idx, w.idx));
				}
            	count[c][4]++;
            	wordsp[c][4]=w;
            }
		}
		word [] wo=new word[1000001];
		for(int i=0;i<count.length;i++) {
			for(int j=0;j<count[i].length;j++) {
				if(count[i][j]%2==1) {
					if(count1[wordsp[i][j].nv]%2==1) {
						alone.add(new dword(wo[wordsp[i][j].nv].idx, wordsp[i][j].idx));
					}
					count1[wordsp[i][j].nv]++;
					wo[wordsp[i][j].nv]=wordsp[i][j];
				}
			}
		}
		int ans=0;
		int i=0;
		int j=0;

		for(;i<q.size();i++) {
			if(j<alone.size()) {
				ans++;
				sb.append(a[alone.get(j).idx1]+" ");
				sb.append(a[q.get(j).idx1]+"\n");
				sb.append(a[alone.get(j).idx2]+" ");
				sb.append(a[q.get(j).idx2]+"\n");
				j++;
			}
			else {
				if(i==q.size()-1) {
					break;
				}
				ans++;
				sb.append(a[q.get(i).idx1]+" ");
				sb.append(a[q.get(i+1).idx1]+"\n");
				sb.append(a[q.get(i).idx2]+" ");
				sb.append(a[q.get(i+1).idx2]+"\n");
				i++;
			}
		}
		out.println(ans);
		out.println(sb);
		out.flush();
	}

	static class word implements Comparable<word> {
		int nv;
		char a;
		String s;
		int idx;

		word(int n, char a, String s, int i) {
			nv = n;
			this.a = a;
			this.s = s;
			idx = i;
		}

		public String toString() {
			return nv + " " + a + " " + s + " " + idx;
		}

		@Override
		public int compareTo(word o) {
			
			return nv-o.nv;
		}
	}
    static class dword{
    	int idx1;
    	int idx2;
    	dword(int i1,int i2){
    		idx1=i1;
    		idx2=i2;
    	}
    	public String toString() {
			return idx1+" "+idx2;
		}
    }
	static class pair implements Comparable<pair> {
		int x;
		int y;

		pair(int x, int y) {
			this.x = x;
			this.y = y;
		}

		public String toString() {
			return x + " " + y;
		}

		public int compareTo(pair o) {
			return y - o.y;
		}
	}

	static long inver(long x) {
		int a = (int) x;
		long e = (mod - 2);
		long res = 1;
		while (e > 0) {
			if ((e & 1) == 1) {
				// System.out.println(res*a);
				res = (int) ((1l * res * a) % mod);
			}
			a = (int) ((1l * a * a) % mod);
			e >>= 1;
		}
		// out.println(res+" "+x);
		return res % mod;
	}

	static long fac(int n) {
		if (n == 0)
			return fac[n] = 1;
		if (n == 1)
			return fac[n] = 1;
		long ans = 1;
		for (int i = 1; i <= n; i++)
			fac[i] = ans = (i % mod * ans % mod) % mod;
		return ans % mod;
	}

	static long gcd(long a, long b) {

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

	static class sol {
		boolean st;
		int l;
		int r;
		char s;

		sol(boolean st, int l, int r, char s) {
			this.st = st;
			this.l = l;
			this.r = r;
			this.s = s;
		}

		public String toString() {
			return st + " " + l + " " + r + " " + s;
		}
	}

	static class unionfind {
		int[] p;
		int[] size;

		unionfind(int n) {
			p = new int[n];
			size = new int[n];

			for (int i = 0; i < n; i++) {
				p[i] = i;
			}
			Arrays.fill(size, 1);
		}

		int findSet(int v) {
			if (v == p[v])
				return v;
			return p[v] = findSet(p[v]);
		}

		boolean sameSet(int a, int b) {
			a = findSet(a);
			b = findSet(b);
			if (a == b)
				return true;
			return false;
		}

		int max() {
			int max = 0;
			for (int i = 0; i < size.length; i++)
				if (size[i] > max)
					max = size[i];
			return max;
		}

		void combine(int a, int b) {
			a = findSet(a);
			b = findSet(b);
			if (a == b)
				return;
			if (size[a] > size[b]) {
				p[b] = a;
				size[a] += size[b];

			} else {
				p[a] = b;
				size[b] += size[a];
			}
		}
	}

	static class Scanner {
		StringTokenizer st;
		BufferedReader br;

		public Scanner(InputStream system) {
			br = new BufferedReader(new InputStreamReader(system));
		}

		public Scanner(String file) throws Exception {
			br = new BufferedReader(new FileReader(file));
		}

		public String next() throws IOException {
			while (st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}

		public String nextLine() throws IOException {
			return br.readLine();
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public double nextDouble() throws IOException {
			return Double.parseDouble(next());
		}

		public char nextChar() throws IOException {
			return next().charAt(0);
		}

		public Long nextLong() throws IOException {
			return Long.parseLong(next());
		}

		public boolean ready() throws IOException {
			return br.ready();
		}

		public void waitForInput() throws InterruptedException {
			Thread.sleep(3000);
		}
	}
}