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.math.BigInteger;
import java.util.*;
import java.util.stream.Collectors;

public class Program {
    
    private static PrintWriter out;
    
    private static <T> void mprintln(T ... ar){
        for(T i: ar) out.print(i + " ");
        out.println();
    }
    
    public static void main(String[] args) throws FileNotFoundException{

        // Input from file
        // File inputFile = new File("JavaFile.txt");
        // File outputFile = new File("JavaOutputFile.txt");
        // FileReader fileReader = new FileReader(inputFile);
        // Here it ends

        MyScanner sc = new MyScanner();
        // MyScanner sc = new MyScanner(fileReader);

        out = new PrintWriter(new BufferedOutputStream(System.out)); // Output to console
        // out = new PrintWriter(new PrintStream(outputFile)); // Output to file

        getAns(sc);

        out.close(); 
    }
    
//  Global Variables  
    
    
    private static void getAns(MyScanner sc){
        int MAX = (int) (1e6 + 1);
        HashMap<Character, ArrayList<String>>[] map = new HashMap[MAX];
        for(int i = 0; i < MAX; i++) map[i] = new HashMap();
        
        int n = sc.ni();
        while(n-- > 0){
            String s = sc.nn();
            int[] req = countVowels(s.toCharArray());
            map[req[0]].putIfAbsent((char) req[1], new ArrayList());
            map[req[0]].get((char) req[1]).add(s);
        }
        
        LinkedList<String> first = new LinkedList(), second = new LinkedList();

        for(int i = 1; i < MAX; i++){
            LinkedList<String> list = new LinkedList();
            for(Character ch: map[i].keySet()){
                int size = map[i].get(ch).size();

                if(size % 2 == 1) list.add(map[i].get(ch).get(size - 1));
                if(list.size() == 2) first.add(list.pollFirst() + " " + list.pollFirst());    
                for(int j = 0; j < size - 1; j += 2) second.add(map[i].get(ch).get(j) + " " + map[i].get(ch).get(j + 1));
            }
        }

//        out.println(first);
//        out.println(second);
//        
//        out.println(Arrays.toString(map));
        
        int fSize = first.size(), sSize = second.size();
        int ans = Math.min(fSize, sSize);
        fSize -= ans;
        sSize -= ans;
        
        ArrayList<String> finalAns = new ArrayList();
        for(int i = 0; i < ans; i++){
            String[] forFirst = first.pollFirst().split(" ");
            String[] forSecond = second.pollFirst().split(" ");
            
            finalAns.add(forFirst[0] + " " + forSecond[0] + "\n" + forFirst[1] + " " + forSecond[1]);
        }
        
        while(second.size() >= 2){
            String[] forFirst = second.pollFirst().split(" ");
            String[] forSecond = second.pollFirst().split(" ");
            
            finalAns.add(forFirst[0] + " " + forSecond[0] + "\n" + forFirst[1] + " " + forSecond[1]);
        }
        
        out.println(finalAns.size());
        for(String cur: finalAns) out.println(cur);
    }

    private static int[] countVowels(char[] ar) {
        int[] ans = {0, 'a'};
        
        for(char ch: ar) if(ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u'){
            ++ans[0];
            ans[1] = ch;
        }
        
        return ans;
    }
    
    static class MyScanner{
        BufferedReader br;
	StringTokenizer st;

	MyScanner(FileReader fileReader){
            br = new BufferedReader(fileReader);
	}

	MyScanner(){
            br = new BufferedReader(new InputStreamReader(System.in));
	}

	String nn(){
            while(st == null || !st.hasMoreElements()){
		try{
                    st = new StringTokenizer(br.readLine());
		}catch(IOException e){
                    e.printStackTrace();
		}
            }
            return st.nextToken();
	}
        
        String nextLine(){
            String ans = "";
            try {
                ans = br.readLine();
            } catch (IOException ex) {
                ex.printStackTrace();
            }
            return ans;
        }

	char nc(){
            return nn().charAt(0);
	}

	int ni(){
            return Integer.parseInt(nn());
	}

	long nl(){
            return Long.parseLong(nn());
	}

	double nd(){
            return Double.parseDouble(nn());
	}

	int[] niArr0(int n){
            int[] ar = new int[n];
            for(int i = 0; i < n; i++) ar[i] = ni();
            return ar;
	}

        int[] niArr1(int n){
            int[] ar = new int[n + 1];
            for(int i = 1; i <= n; i++) ar[i] = ni();
            return ar;
	}

        long[] nlArr0(int n){
            long[] ar = new long[n];
            for(int i = 0; i < n; i++) ar[i] = nl();
            return ar;
        }

        long[] nlArr1(int n){
            long[] ar = new long[n + 1];
            for(int i = 1; i <= n; i++) ar[i] = nl();
            return ar;
        }
    }
}