import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner obj=new Scanner(System.in);
String s=obj.next();
String ans="";
HashMap<Character,Integer> map=new HashMap<>();
for(int i=0;i<s.length();i++){
char a=s.charAt(i);
// System.out.println(a);
if(map.containsKey(a)){
map.put(a,map.get(a)+1);
}
else
map.put(a,1);
}
for (Map.Entry<Character,Integer> entry : map.entrySet())
{ ans=ans+entry.getKey();
if(entry.getValue()!=1){
ans=ans+entry.getValue();
}
}
System.out.println(ans);
}
}