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.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.StringTokenizer;
import java.util.TreeSet;
import java.util.stream.Collectors;


public class Main {

	static class Task {
		
		int NN = 200005;
		int MOD = 1000000007;
		int INF = 2000000000;
		long INFINITY = 2000000000000000000L;
		
		class Data {
			String s;
			Integer vowelCount;
			char lastVowel;
			Integer index;
			public Data(String s, Integer vowelCount, char lastVowel, int i) {
				super();
				this.s = s;
				this.vowelCount = vowelCount;
				this.lastVowel = lastVowel;
				this.index = i;
			}
			
			public Pair toPair() {
				return new Pair(this.vowelCount, this.lastVowel);
			}
			
		}
		
		Data [] a;
		String [] str;
		
		boolean isVowel(char ch) {
			return ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u';
		}
		
		public void solve(InputReader in, PrintWriter out) {
			int n = in.nextInt();
			a =  new Data[n];
			str = new String[n];
			for(int i=0;i<n;++i) {
				String s = in.next();
				str[i] = s;
				char lastVowel = ' ';
				int vowelCount= 0;
				for(int j=0;j<s.length();++j) {
					if(isVowel(s.charAt(j))) {
						lastVowel = s.charAt(j);
						++vowelCount;
					}
				}
				a[i] = new Data(s, vowelCount, lastVowel, i);
			}
			Map<Pair, List<Integer>> mp = new HashMap<>();
			for(int i=0;i<n;++i) {
				List<Integer> L = new ArrayList<>();
				if(mp.containsKey(a[i].toPair()))
					L = mp.get(a[i].toPair());
				L.add(a[i].index);
				mp.put(a[i].toPair(), L);
			}
			List<Rhyme> ret = new ArrayList<>();
			Map<Integer, List<Integer>> mp1 = new HashMap<>();
			for(Pair p: mp.keySet()) {
				List<Integer> L = mp.get(p);
				int i = 0;
				if(L.size()%2 !=0) {
					++i;
					List<Integer> L1 = new ArrayList<>();
					if(mp1.containsKey(p.vowelCount))
						L1 = mp1.get(p.vowelCount);
					L1.add(L.get(0));
					mp1.put(p.vowelCount, L1);
				}
				while(i < L.size()) {
					ret.add(new Rhyme( -1, -1, L.get(i), L.get(i+1)));
					i+=2;
				}
			}
			int ptr =0;
			for(int vc:mp1.keySet()) {
				List<Integer> L = mp1.get(vc);
				for(int i=0;i+1<L.size()&&ptr<ret.size();i+=2) {
					ret.get(ptr).a = L.get(i);
					ret.get(ptr).b = L.get(i + 1);
					++ptr;
				}
				if(ptr==ret.size())break;
			}
			while(ptr+1<ret.size()) {
				ret.get(ptr).a = ret.get(ptr+1).c;
				ret.get(ptr).b = ret.get(ptr+1).d;
				ptr += 2;
			}
			int tot = 0;
			for(Rhyme r:ret) {
				if(r.isValid())++tot;
			}
			out.println(tot);
			for(Rhyme r:ret) {
				if(r.isValid()) {
					out.println(str[r.a]+" "+str[r.c]);
					out.println(str[r.b]+" "+str[r.d]);
				}
			}
		}
		
		class Rhyme{
			Integer a,b,c,d;

			public boolean isValid() {
				return a!=-1&&b!=-1&&c!=-1&&d!=-1;
			}
			
			public Rhyme(Integer a, Integer b, Integer c, Integer d) {
				super();
				this.a = a;
				this.b = b;
				this.c = c;
				this.d = d;
			}
			
		}
		
		class Pair {
			Integer vowelCount;
			char lastVowel;
			public Pair(Integer vowelCount, char lastVowel) {
				super();
				this.vowelCount = vowelCount;
				this.lastVowel = lastVowel;
			}
			@Override
			public int hashCode() {
				final int prime = 31;
				int result = 1;
				result = prime * result + getOuterType().hashCode();
				result = prime * result + lastVowel;
				result = prime * result + ((vowelCount == null) ? 0 : vowelCount.hashCode());
				return result;
			}
			@Override
			public boolean equals(Object obj) {
				if (this == obj)
					return true;
				if (obj == null)
					return false;
				if (getClass() != obj.getClass())
					return false;
				Pair other = (Pair) obj;
				if (!getOuterType().equals(other.getOuterType()))
					return false;
				if (lastVowel != other.lastVowel)
					return false;
				if (vowelCount == null) {
					if (other.vowelCount != null)
						return false;
				} else if (!vowelCount.equals(other.vowelCount))
					return false;
				return true;
			}
			private Task getOuterType() {
				return Task.this;
			}
			
		}
		
	}
	
	static void prepareIO(boolean isFileIO) {
		//long t1 = System.currentTimeMillis();
		Task solver = new Task();
		// Standard IO
		if(!isFileIO) { 
			InputStream inputStream = System.in;
	        OutputStream outputStream = System.out;
	        InputReader in = new InputReader(inputStream);
	        PrintWriter out = new PrintWriter(outputStream);
	        solver.solve(in, out);
	        //out.println("time(s): " + (1.0*(System.currentTimeMillis()-t1))/1000.0);
	        out.close();
		}
        // File IO
		else {
			String IPfilePath = System.getProperty("user.home") + "/Downloads/ip.in";
	        String OPfilePath = System.getProperty("user.home") + "/Downloads/op.out";
	        InputReader fin = new InputReader(IPfilePath);
	        PrintWriter fout = null;
	        try {
				fout = new PrintWriter(new File(OPfilePath));
			} catch (FileNotFoundException e) {
				e.printStackTrace();
			}
	        solver.solve(fin, fout);
	        //fout.println("time(s): " + (1.0*(System.currentTimeMillis()-t1))/1000.0);
	        fout.close();
		}
	}
	
	public static void main(String[] args) {
        prepareIO(false);
	}
	
	static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }
        
        public InputReader(String filePath) {
        	File file = new File(filePath);
            try {
				reader = new BufferedReader(new FileReader(file));
			} catch (FileNotFoundException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
            tokenizer = null;
        }
        
        public String nextLine() {
        	String str = "";
        	try {
				str = reader.readLine();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
        	return str;
        }
        
        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

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

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

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

}