import java.util.*; public class Main { public static void main(String[] args) { Scanner scn=new Scanner(System.in); String str=""; while(scn.hasNext()) { str+=scn.nextLine()+" "; } str=str.replaceAll("[,.;?!-]", ""); String arr[]=str.split(" "); ArrayList list = new ArrayList(); ArrayList count = new ArrayList(); int j=0; for(int i=0;i