import java.io.*;
import java.util.*;
class countfreq
{
public static void main(String s[]) throws Exception
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.print(" enter string ");
System.out.println();
String str=br.readLine();
String st=str.replaceAll(" ", "");
char[] demo=st.toCharArray();
public static int sequenceCount(String str)
{
for(int counter=0;counter<demo.length;counter++)
{
char ch=demo[counter];
int count=0;
for ( int i=0; i<demo.length; i++){
if (ch== demo[i])
count++;
}
boolean flag=false;
for(int j=counter-1;j>=0;j--)
{
if(ch==demo[j])
flag=true;
}
if(!flag)
{
System.out.println("Character :"+ch+" occurs "+count+" times ");
}
}
}
}