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.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.util.ArrayList;
import java.util.StringTokenizer; 
						  
						
						public class temp4 {
							static class FastReader 
						    { 
						        BufferedReader br; 
						        StringTokenizer st; 
						  
						        public FastReader() 
						        { 
						            br = new BufferedReader(new
						                     InputStreamReader(System.in)); 
						        } 
						  
						        String next() 
						        { 
						            while (st == null || !st.hasMoreElements()) 
						            { 
						                try
						                { 
						                    st = new StringTokenizer(br.readLine()); 
						                } 
						                catch (IOException  e) 
						                { 
						                    e.printStackTrace(); 
						                } 
						            } 
						            return st.nextToken(); 
						        } 
						  
						        int nextInt() 
						        { 
						            return Integer.parseInt(next()); 
						        } 
						  
						        long nextLong() 
						        { 
						            return Long.parseLong(next()); 
						        } 
						  
						        double nextDouble() 
						        { 
						            return Double.parseDouble(next()); 
						        } 
						  
						        String nextLine() 
						        { 
						            String str = ""; 
						            try
						            { 
						                str = br.readLine(); 
						            } 
						            catch (IOException e) 
						            { 
						                e.printStackTrace(); 
						            } 
						            return str; 
						        } 
						    } 
							
						/*	static class Reader 
						    { 
						        final private int BUFFER_SIZE = 1 << 16; 
						        private DataInputStream din; 
						        private byte[] buffer; 
						        private int bufferPointer, bytesRead; 
						  
						        public Reader() 
						        { 
						            din = new DataInputStream(System.in); 
						            buffer = new byte[BUFFER_SIZE]; 
						            bufferPointer = bytesRead = 0; 
						        } 
						  
						        public Reader(String file_name) throws IOException 
						        { 
						            din = new DataInputStream(new FileInputStream(file_name)); 
						            buffer = new byte[BUFFER_SIZE]; 
						            bufferPointer = bytesRead = 0; 
						        } 
						  
						        public String readLine() throws IOException 
						        { 
						            byte[] buf = new byte[64]; // line length 
						            int cnt = 0, c; 
						            while ((c = read()) != -1) 
						            { 
						                if (c == '\n') 
						                    break; 
						                buf[cnt++] = (byte) c; 
						            } 
						            return new String(buf, 0, cnt); 
						        } 
						  
						        public int nextInt() throws IOException 
						        { 
						            int ret = 0; 
						            byte c = read(); 
						            while (c <= ' ') 
						                c = read(); 
						            boolean neg = (c == '-'); 
						            if (neg) 
						                c = read(); 
						            do
						            { 
						                ret = ret * 10 + c - '0'; 
						            }  while ((c = read()) >= '0' && c <= '9'); 
						  
						            if (neg) 
						                return -ret; 
						            return ret; 
						        } 
						  
						        public long nextLong() throws IOException 
						        { 
						            long ret = 0; 
						            byte c = read(); 
						            while (c <= ' ') 
						                c = read(); 
						            boolean neg = (c == '-'); 
						            if (neg) 
						                c = read(); 
						            do { 
						                ret = ret * 10 + c - '0'; 
						            } 
						            while ((c = read()) >= '0' && c <= '9'); 
						            if (neg) 
						                return -ret; 
						            return ret; 
						        } 
						  
						        public double nextDouble() throws IOException 
						        { 
						            double ret = 0, div = 1; 
						            byte c = read(); 
						            while (c <= ' ') 
						                c = read(); 
						            boolean neg = (c == '-'); 
						            if (neg) 
						                c = read(); 
						  
						            do { 
						                ret = ret * 10 + c - '0'; 
						            } 
						            while ((c = read()) >= '0' && c <= '9'); 
						  
						            if (c == '.') 
						            { 
						                while ((c = read()) >= '0' && c <= '9') 
						                { 
						                    ret += (c - '0') / (div *= 10); 
						                } 
						            } 
						  
						            if (neg) 
						                return -ret; 
						            return ret; 
						        } 
						  
						        private void fillBuffer() throws IOException 
						        { 
						            bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); 
						            if (bytesRead == -1) 
						                buffer[0] = -1; 
						        } 
						  
						        private byte read() throws IOException 
						        { 
						            if (bufferPointer == bytesRead) 
						                fillBuffer(); 
						            return buffer[bufferPointer++]; 
						        } 
						  
						        public void close() throws IOException 
						        { 
						            if (din == null) 
						                return; 
						            din.close(); 
						        } 
						    } */
							static class Print
						{
							    private final BufferedWriter bw;
							    public Print()
							    {
							        bw=new BufferedWriter(new OutputStreamWriter(System.out));
							    }
						    public void print(String str)throws IOException
							    {
							        bw.append(str);
							    }
							    public void println(String str)throws IOException
							    {
							        print(str);
							        bw.append("\n");
							    }
							    public void close()throws IOException
							    {
							        bw.close();
							    }} 
								
								
								
							
								public static void main(String[] args) throws IOException {			
									FastReader scn=new FastReader();
									Print pr=new Print();
									int n=scn.nextInt(),tot=0,last=0;
									String[] arr=new String[n+1];
									int[][] info=new int[1000002][6];
									int[] idx=new int[128];
									idx['a']=1;idx['e']=2;idx['i']=3;idx['o']=4;idx['u']=5;
									ArrayList<node> p1=new ArrayList<>();
									ArrayList<node> p2=new ArrayList<>();
									for(int i=1;i<=n;i++){
										arr[i]=scn.next();
										tot=0;last=0;
										for(int j=0;j<arr[i].length();j++){
											if(idx[arr[i].charAt(j)]>0){
												tot++;last=idx[arr[i].charAt(j)];
												
											}
										}
										if(info[tot][last]>0){
											p2.add(new node(info[tot][last],i));
											info[tot][last]=0;
										}
										else{
											info[tot][last]=i;
										}
										
									}
									int prev=0;
									for(int i=1;i<=1000000;i++){
										prev=0;
										for(int j=1;j<6;j++){
											if(info[i][j]>0){
												if(prev>0){
													p1.add(new node(prev,info[i][j]));
													prev=0;
												}
												else{
													prev=info[i][j];
												}
											}
										}
									}
									int l1=p1.size(),l2=p2.size();
									while(l2>l1){
										p1.add(p2.remove(l2-1));
										l2--;l1++;
									}
									pr.println(l2+"");
									for(int i=0;i<l2;i++){
										pr.println(arr[p1.get(i).a]+" "+arr[p2.get(i).a]);
										pr.println(arr[p1.get(i).b]+" "+arr[p2.get(i).b]);
									}
									
									pr.close();
									
								}
							
								public static class node{
									int a;
									int b;
									public node(int a,int b){
										this.a=a;this.b=b;
									}
								}
								
						}