import java.util.*;
public class CountAboutStrings 
{    
    public static void main(String[] args) 
    {    
        int count=0, space=0, vowelcount = 0, consonantcount = 0;    
        Scanner sc= new Scanner(System.in); 
      System.out.print("Enter a string: ");  
    String str= sc.nextLine();       
        str = str.toLowerCase();    
  
  for(int i = 0; i < str.length(); i++)
{    
    {    
        if(str.charAt(i) != ' ')
        {
        count++;
        } 
        else
        { 
        space ++ ; 
        }
    }
        if(str.charAt(i) == 'a' || str.charAt(i) == 'e' || str.charAt(i) == 'i' || str.charAt(i) == 'o' || str.charAt(i) == 'u') 
        {    
        vowelcount++;    
        }    
        else if(str.charAt(i) >= 'a' && str.charAt(i)<='z') 
        {      
        consonantcount++;    
        }   
  
}    
System.out.println("Total number of characters/letters in a string: " + count);
System.out.println("Number of space: " + space); 
System.out.println("Number of words: " +(space+1));
System.out.println("Number of vowels: " + vowelcount);    
System.out.println("Number of consonants: " + consonantcount); 
    }    
}