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.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Scanner;
import java.util.Set;

public class TaskC {
	public static void main(String[] args) {
		Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		int n = in.nextInt();
		String[] t = getStringArr(in, n);
		List<String> r = solve(n, t);
		System.out.println(r.size() / 2);
		System.out.println(str(r));
		in.close();
	}

	private static List<String> solve(int n, String[] t) {
		Map<Character, Integer> dic = new HashMap<>();
		dic.put('a', 0);
		dic.put('e', 1);
		dic.put('i', 2);
		dic.put('o', 3);
		dic.put('u', 4);
		Map<Integer, Map<Character, Queue<String>>> map = new HashMap<>();
		Queue<String[]> fi = new LinkedList<>();
		Queue<String[]> se = new LinkedList<>();
		List<String> res = new ArrayList<>();
		for (String w : t) {
			int[] r = parse(w);
			if (r != null) {
				Map<Character, Queue<String>> subMap = map.getOrDefault(r[0], new HashMap<>());
				Queue<String> q = subMap.getOrDefault((char) r[1], new LinkedList<>());
				if (!q.isEmpty()) {
					se.offer(new String[] { q.poll(), w });
				} else {
					q.offer(w);
				}
				map.put(r[0], subMap);
				subMap.put((char) r[1], q);
			}
		}
		for (Map<Character, Queue<String>> subMap : map.values()) {
			String last = null;
			for (Queue<String> q : subMap.values()) {
				if (!q.isEmpty()) {
					if (last != null) {
						fi.offer(new String[] { last, q.poll() });
						last = null;
					} else {
						last = q.poll();
					}
				}
			}
		}

		while (!fi.isEmpty() && !se.isEmpty()) {
			String[] f = fi.poll();
			String[] s = se.poll();
			res.add(f[0] + " " + s[0]);
			res.add(f[1] + " " + s[1]);
		}
		while (!se.isEmpty()) {
			String[] f = se.poll();
			if (!se.isEmpty()) {
				String[] s = se.poll();
				res.add(f[0] + " " + s[0]);
				res.add(f[1] + " " + s[1]);
			}
		}
		return res;
	}

	static Set<Character> dic = new HashSet<>();
	static {
		dic.add('a');
		dic.add('e');
		dic.add('i');
		dic.add('o');
		dic.add('u');
	}

	private static int[] parse(String w) {
		int[] r = new int[2];
		for (char c : w.toCharArray()) {
			if (dic.contains(c)) {
				r[0]++;
				r[1] = c;
			}
		}
		if (r[0] == 0) {
			return null;
		}
		return r;
	}

	static long mod = 1000000007;

	static long add(long a, long b) {
		long r = a + b;
		if (r < 0) {
			r += mod;
		}
		return r % mod;
	}

	static long mul(long a, long b) {
		return (a * b) % mod;
	}

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

	static String str(List<String> a) {
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < a.size(); i++) {
			sb.append(a.get(i) + "\n");
		}
		return sb.toString();
	}

	static String str(int[] a) {
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < a.length; i++) {
			sb.append(a[i] + " ");
		}
		return sb.toString();
	}

	static int[] getIntArr(Scanner in, int size) {
		int[] arr = new int[size];
		for (int i = 0; i < size; i++) {
			arr[i] = in.nextInt();
		}
		return arr;
	}

	static int[][] getIntArr(Scanner in, int row, int col) {
		int[][] arr = new int[row][];
		for (int i = 0; i < row; i++) {
			arr[i] = getIntArr(in, col);
		}
		return arr;
	}

	static long[] getLongArr(Scanner in, int size) {
		long[] arr = new long[size];
		for (int i = 0; i < size; i++) {
			arr[i] = in.nextLong();
		}
		return arr;
	}

	static long[][] getLongArr(Scanner in, int row, int col) {
		long[][] arr = new long[row][];
		for (int i = 0; i < row; i++) {
			arr[i] = getLongArr(in, col);
		}
		return arr;
	}

	static char[] getCharArr(Scanner in, int size) {
		char[] arr = in.next().toCharArray();
		return arr;
	}

	static String[] getStringArr(Scanner in, int size) {
		String[] arr = new String[size];
		for (int i = 0; i < size; i++) {
			arr[i] = in.next();
		}
		return arr;
	}

	static Map<Integer, List<Integer>> getEdges(Scanner in, int size, boolean directed) {
		Map<Integer, List<Integer>> edges = new HashMap<>();
		for (int i = 0; i < size; i++) {
			int from = in.nextInt();
			int to = in.nextInt();
			if (!edges.containsKey(from)) {
				edges.put(from, new ArrayList<Integer>());
			}
			edges.get(from).add(to);
			if (!directed) {
				if (!edges.containsKey(to)) {
					edges.put(to, new ArrayList<Integer>());
				}
				edges.get(to).add(from);
			}

		}
		return edges;
	}
}