String compress(String input){
		
		ArrayList<String> aList=new ArrayList<String> ();
		
		int count=1;
		int alphaCount=1;
		StringBuffer sb=new StringBuffer();
		String OrigalphaB=Character.toString(input.charAt(0));
		String alphaB=OrigalphaB+alphaCount;
		
		while(count<input.length()){
			
			if(alphaB.equals(Character.toString(input.charAt(count)))){
				alphaCount++;
			}else{
				OrigalphaB=Character.toString(input.charAt(count));
				alphaCount=1;
			}
			//alphaB=OrigalphaB+alphaCount;
			if(!alphaB.startsWith(OrigalphaB)){
				sb.append(alphaB);
			}
		}
		
		return sb.toString();
	}