import java.util.*;
public class PigLatin
{
String txt;
int len;
PigLatin()
{
txt="";
len=0;
}
void readstring()
{
Scanner sc=new Scanner(System.in);
System.out.print("\n \tEnter The word in UPPER CASE \n \t");
txt=sc.nextLine();
txt=txt.toUpperCase();
len=txt.length();
convert();
}
void convert()
{
for(int i=0; i<len; i++)
{
if(txt.charAt(i)=='A'||txt.charAt(i)=='E'||txt.charAt(i)=='I'||txt.charAt(i)=='O'||txt.charAt(i)=='U')
{
System.out.println("\n \t The Piglatin Equivalent of the given word is : ");
String sub1=txt.substring(0, i);
String sub=txt.substring(i, (len));
System.out.println("\n \t "+sub+""+sub1+"AY");
break;
}
}
consonents();
}
void consonents()
{
int flag=len;
System.out.println("\n \t The Number of consonents in the given word are : ");
for(int i=0; i<len; i++)
{
if(txt.charAt(i)=='A'||txt.charAt(i)=='E'||txt.charAt(i)=='I'||txt.charAt(i)=='O'||txt.charAt(i)=='U')
{
flag--;
}
}
System.out.println("\n \t "+flag);
}
public static void main(String[] args)
{
PigLatin obj=new PigLatin();
obj.readstring();
}
}