import java.util.HashMap;
public class Main {
static String remove_odd_frequency_characters(String s) {
HashMap<Character, Integer> hm = new HashMap<>();
for (int i = 0; i < s.length(); i++) {
if (hm.containsKey(s.charAt(i))) {
hm.put(s.charAt(i),
hm.get(s.charAt(i)) + 1);
}
else {
hm.put(s.charAt(i), 1);
}
}
String new_string = "";
for (int i = 0; i < s.length(); i++) {
if (hm.get(s.charAt(i)) % 2 != 0) {
continue;
}
new_string = new_string + s.charAt(i);
}
return new_string;
}
public static void main(String args[]) {
String s = "java programming version 11";
String new_string = remove_odd_frequency_characters(s);
System.out.println(new_string);
}
}
/*
run:
vogmmingvion11
*/