import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
Scanner input
= new Scanner
(System.
in); str = input.nextLine();
for(int i = 0;i<str.length();i++)
{
str2 = empty;
str2 += str.charAt(i);
arr.add(str2);
}
for(int i = 0;i < arr.size(); i++)
{
if(i != arr.size()-1)
{
if(arr.get(i).equals(arr.get(i+1)))
{
arr.remove(i);
arr.remove(i);
i--;
}
}
}
for(int i = 0;i < arr.size();i++)
{
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCUFycmF5TGlzdDxTdHJpbmc+IGFyciA9IG5ldyBBcnJheUxpc3QoKTsKCQlTY2FubmVyIGlucHV0ID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKCQlTdHJpbmcgc3RyLHN0cjI7CgkJU3RyaW5nIGVtcHR5ID0gIiI7CgkJc3RyID0gaW5wdXQubmV4dExpbmUoKTsKCQlmb3IoaW50IGkgPSAwO2k8c3RyLmxlbmd0aCgpO2krKykKCQl7CgkJCXN0cjIgPSBlbXB0eTsKCQkJc3RyMiArPSBzdHIuY2hhckF0KGkpOwoJCQlhcnIuYWRkKHN0cjIpOwoJCX0KCQlmb3IoaW50IGkgPSAwO2kgPCBhcnIuc2l6ZSgpOyBpKyspCgkJewoJCQlpZihpICE9IGFyci5zaXplKCktMSkKCQkJewoJCQkJaWYoYXJyLmdldChpKS5lcXVhbHMoYXJyLmdldChpKzEpKSkKCQkJCXsKCQkJCQlhcnIucmVtb3ZlKGk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