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.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.PriorityQueue;
import java.util.Queue;
import java.util.Stack;
import java.util.StringTokenizer;

public class codeforcesreturn {
	static class strpair {
		String str1;
		String str2;

		public strpair(String str1, String str2) {
			this.str1 = str1;
			this.str2 = str2;
		}

	}

	static class pair implements Comparable<pair> {
		int numvow;
		char lastvow;
		String str;

		public pair(int numvow, char lastvow, String str) {
			this.numvow = numvow;
			this.lastvow = lastvow;
			this.str = str;
		}

		public int compareTo(pair p) {
			if (numvow == p.numvow)
				return lastvow - p.lastvow;
			return numvow - p.numvow;
		}
	}

	static ArrayList<Integer>[] adjlist;
	static int[][] adjmatrix;
	static int[][] adjmatrix2;
	static boolean[] vis;
	static boolean[] intialvis;
	static boolean[] vis2;
	static int[] counter;
	static int V, E;
	static Stack<Integer> st;
	static ArrayList<Integer> arrylist;
	static boolean flag;
	static int[] dx = new int[] { 1, -1, 0, 0 };
	static int[] dy = new int[] { 0, 0, 1, -1 };
	static int[] Arr;
	static PrintWriter pw;

	static int numvow(String str) {
		int c = 0;
		for (int i = 0; i < str.length(); i++)
			if (str.charAt(i) == 'a' || str.charAt(i) == 'e' || str.charAt(i) == 'i' || str.charAt(i) == 'o'
					|| str.charAt(i) == 'u')
				c++;
		return c;
	}

	static char lastVowel(String str) {

		for (int i = str.length() - 1; i >= 0; i--)
			if (str.charAt(i) == 'a' || str.charAt(i) == 'e' || str.charAt(i) == 'i' || str.charAt(i) == 'o'
					|| str.charAt(i) == 'u')
				return str.charAt(i);
		return 0;
	}

	public static void main(String[] args) throws IOException, InterruptedException {
		pw = new PrintWriter(System.out);
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		PriorityQueue<pair> pq = new PriorityQueue<codeforcesreturn.pair>();
		PriorityQueue<pair> pq2 = new PriorityQueue<codeforcesreturn.pair>();
		Queue<strpair> q1 = new LinkedList<codeforcesreturn.strpair>();
		Queue<strpair> q2 = new LinkedList<codeforcesreturn.strpair>();
		for (int i = 0; i < n; i++) {
			String str = sc.next();
			pq.add(new pair(numvow(str), lastVowel(str), str));
		}
		while (!pq.isEmpty()) {
			pair p1 = pq.poll();
			if (!pq.isEmpty()) {
				pair p2 = pq.peek();
				if (p1.numvow == p2.numvow && p1.lastvow == p2.lastvow) {
					q1.add(new strpair(p1.str, p2.str));
					pq.poll();
				} else
					pq2.add(p1);
			} else
				pq2.add(p1);
		}

		while (!pq2.isEmpty()) {
			pair p1 = pq2.poll();
			if (!pq2.isEmpty()) {
				pair p2 = pq2.peek();
				if (p1.numvow == p2.numvow) {
					q2.add(new strpair(p1.str, p2.str));
					pq2.poll();
				}
			}
		}
		int c = 0;
		StringBuilder sb = new StringBuilder();
		while (!q1.isEmpty()) {
			if (q2.isEmpty()) {
				q2 = q1;
			}
			strpair sp1 = q2.poll();
			if (!q1.isEmpty()) {
				strpair sp2 = q1.poll();
				sb.append(sp1.str1 + " " + sp2.str1 + "\n");
				sb.append(sp1.str2 + " " + sp2.str2 + "\n");
				c++;
			}
		}
		System.out.println(c);
		System.out.println(sb);
	}

	static class Scanner {
		StringTokenizer st;
		BufferedReader br;

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

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

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

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

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

		public double nextDouble() throws IOException {
			String x = next();
			StringBuilder sb = new StringBuilder("0");
			double res = 0, f = 1;
			boolean dec = false, neg = false;
			int start = 0;
			if (x.charAt(0) == '-') {
				neg = true;
				start++;
			}
			for (int i = start; i < x.length(); i++)
				if (x.charAt(i) == '.') {
					res = Long.parseLong(sb.toString());
					sb = new StringBuilder("0");
					dec = true;
				} else {
					sb.append(x.charAt(i));
					if (dec)
						f *= 10;
				}
			res += Long.parseLong(sb.toString()) / f;
			return res * (neg ? -1 : 1);
		}

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

	}

}