Problem: Having read half of the book called "Storm and Calm" on the IT lesson, Innocentius was absolutely determined to finish the book on the maths lessons. All was fine until the math teacher Ms. Watkins saw Innocentius reading fiction books instead of solving equations of the fifth degree. As during the last maths class Innocentius suggested the algorithm of solving equations of the fifth degree in the general case, Ms. Watkins had no other choice but to give him a new task.

The teacher asked to write consecutively (without spaces) all words from the "Storm and Calm" in one long string s. She thought that a string is good if the number of vowels in the string is no more than twice more than the number of consonants. That is, the string with v vowels and c consonants is good if and only if v ≤ 2c.

The task Innocentius had to solve turned out to be rather simple: he should find the number of the longest good substrings of the string s.

Input

The only input line contains a non-empty string s consisting of no more than 2·105 uppercase and lowercase Latin letters. We shall regard letters "a", "e", "i", "o", "u" and their uppercase variants as vowels.

Output

Print on a single line two numbers without a space: the maximum length of a good substring and the number of good substrings with this length. If no good substring exists, print "No solution" without the quotes.

Two substrings are considered different if their positions of occurrence are different. So if some string occurs more than once, then it should be counted more than once.

Examples

Input

Abo


Output

3 1


Input

OEIS


Output

3 1


Input

auBAAbeelii


Output

9 3


Input

AaaBRAaaCAaaDAaaBRAaa


Output

18 4


Input

EA


Output

No solution

Note

In the first sample there is only one longest good substring: "Abo" itself. The other good substrings are "b", "Ab", "bo", but these substrings have shorter length.

In the second sample there is only one longest good substring: "EIS". The other good substrings are: "S", "IS".

Solution (in JAVA):

Solution:
import java.io.*;
import java.lang.Math;
import java.util.*;

public class Main
{	
	public BufferedReader in;
	public PrintStream out;
	
	public boolean is_g(char ch)
	{
		switch (ch)
		{
			case 'a':
			case 'o':
			case 'e':
			case 'i':
			case 'u':
			case 'A':
			case 'O':
			case 'E':
			case 'I':
			case 'U':
				return true;
			default:
				return false;
		}
	}
	
	public int calc(String s)
	{
		if (s.length()==1)
		{
			return is_g(s.charAt(0)) ? 0 : 1;
		}
	
		int k = s.length() / 2;
		String s1 = s.substring(0,k);
		String s2 = s.substring(k);
		
		return calc2(s1,s2);
	}
	
	public int calc2(String s1, String s2)
	{
		int[] left = new int[s1.length()];
		int i,j, a=0, b=0;
		
		int min_left = 0;
		int max_left = 0;
		
		for (i=s1.length()-1; i>=0;i--)
		{
			if (is_g(s1.charAt(i)))
			{
				a++;
			}
			else
			{
				b++;
			}
			
			left[i] = 2*b-a;
			
			if (left[i]>max_left)
			{
				max_left = left[i];
			}
			
			if (left[i]<min_left)
			{
				min_left = left[i];
			}
		}
		
		int min_right = 0;
		int max_right = 0;
		
		a=0; b=0;
		
		int[] right = new int[s2.length()];
		for (i=0; i<s2.length();i++)
		{
			if (is_g(s2.charAt(i)))
			{
				a++;
			}
			else
			{
				b++;
			}
			
			right[i] = 2*b-a;
			
			if (right[i]>max_right)
			{
				max_right = right[i];
			}
			
			if (right[i]<min_right)
			{
				min_right = right[i];
			}
		}
		
		min_right = -min_right;
		min_left = -min_left;
		
		int[] longest_right = new int[1 + min_right];
		int[] longest_left = new int[1 + min_left];
		
		
		/*for (i=0; i<s1.length(); i++)
		{
			out.print(left[i]);
			out.print(" ");
		}
		out.print("| ");
		for (i=0; i<s2.length(); i++)
		{
			out.print(right[i]);
			out.print(" ");
		}
		out.println();*/
		
		int nm,cm =  min_right;
		
		for (i=s2.length()-1; i>=0; i--)
		{
			nm = (right[i]>0) ? 0 : -right[i]; 
			
			if (nm>cm)
			{
				continue;
			}
			
			/*out.print("cm: ");
			out.println(cm);*/
			
			for (j=nm; j<=cm; j++)			
			{
				/*out.print("lr ");
				out.print(j);
				out.print(" ");
				out.println(i);*/
				
				longest_right[j] = i+1;
			}
			
			cm = nm -1;
			
			if (cm<0)
			{
				break;
			}
		}
		
		for (i=0; i<=cm; i++)
		{
			longest_right[i] = 0;
		}
		
		/*if (s1.length()==25)
		out.println(longest_right[2]);*/
		
		cm =  min_left;
		for (i=0; i<s1.length(); i++)
		{
			nm = (left[i]>0) ? 0 : -left[i]; 
			
			if (nm>cm)
			{
				continue;
			}
			
			
			for (j=nm; j<=cm; j++)
			{
				longest_left[j] = s1.length()-i;
			}
			
			cm = nm -1;
			
			if (cm<0)
			{
				break;
			}
		}
		
		for (i=0; i<=cm; i++)
		{
			longest_left[i] = 0;
		}
		
		int cc,max = 0;
		
		for (i=0; i<s1.length();i++)
		{
			if  (left[i]>=0)
			{
				cc = s1.length()-i + (left[i]>min_right ? s2.length() : longest_right[left[i]]  );
				
				if (cc > max)
				{
					max = cc;
				}
			}
		}
		
		for (i=0; i<s2.length();i++)
		{
			if  (right[i]>=0)
			{
				cc = i+ 1 + (right[i]>min_left ? s1.length() : longest_left[right[i]]  );
				
				if (cc > max)
				{
					max = cc;
				}
			}
		}
		
		if ((max>=s1.length())  && (max>=s2.length()) )
		{
			return max;
		}
		
		if ((cc=calc(s1)) > max)
		{
			max = cc;
		}
		
		if ((cc=calc(s2)) > max)
		{
			max = cc;
		}
		
		
		return max;
	}
	
	public void test()
	{
		String s = readLn();
		
		int n = calc(s);
		
		if (n==0)
		{
			out.println("No solution");
			return;
		}
		
		int i,k=0,a=0,b=0;
		
		for (i=0; i<n; i++)
		{
			if (is_g(s.charAt(i)))
			{
				a++;
			}
			else
			{
				b++;
			}
		}
		
	/*	out.print(a);
		out.print("/");
		out.println(b);*/
		
		
		if (a<=2*b){ k++; }
		
		for (i=0; i+n<s.length(); i++)
		{
			if (is_g(s.charAt(i)))
			{
				a--;
			}
			else
			{
				b--;
			}
			
			if (is_g(s.charAt(i+n)))
			{
				a++;
			}
			else
			{
				b++;
			}
			
			/*out.print(a);
		out.print("/");
		out.println(b);*/
			
			if (a<=2*b){ k++;  }
		}
		
		out.print(n);
		out.print(" ");
		out.println(k);
		
	}
    
	public void run()
	{
		try
		{
			in = new BufferedReader(new InputStreamReader(System.in));
			out = System.out;
			
			//in = new BufferedReader(new FileReader("in.txt"));
			//out = new PrintStream(new File("out.txt"));
			
			
		}
		catch (Exception e)
		{
			return;
		}
		
		//while (true)
		{
			//int t = readInt(); for (int i=0; i<t; i++)					
			{
				test();
			}
		}
	}
	
	public static void main(String args[])
	{
		new Main().run();
	}
	
	private StringTokenizer tokenizer = null;
	
	public int readInt() 
	{
        return Integer.parseInt(readToken());
    }
   
    public long readLong() 
	{
        return Long.parseLong(readToken());
    }
   
    public double readDouble() 
	{
        return Double.parseDouble(readToken());
    }
   
	public String readLn()
	{	
		try
		{
			String s;
			while ((s = in.readLine()).length()==0);
			return s;
		}
		catch (Exception e)
		{
			return "";
		}
	}
	
    public String readToken() 
	{
		try
		{
			while (tokenizer == null || !tokenizer.hasMoreTokens()) 
			{
				tokenizer = new StringTokenizer(in.readLine());
			}
			return tokenizer.nextToken();
		}
		catch (Exception e)
		{
			return "";
		}
    }
	
	public int[] readIntArray(int n)
	{
		int[] x = new int[n];
		readIntArray(x, n);
		return x;
	}
	
	public void readIntArray(int[] x, int n)
	{
		for (int i=0; i<n; i++)
		{
			x[i] = readInt();
		}
	}
}