entrada = input()
letras_unicas = set([i for i in set(list(entrada)) if entrada.count(i) %2 != 0])
if len(letras_unicas) > 1:
print(len(letras_unicas)-1)
else:
print(0)
ZW50cmFkYSA9IGlucHV0KCkKICAgIApsZXRyYXNfdW5pY2FzID0gc2V0KFtpIGZvciBpIGluIHNldChsaXN0KGVudHJhZGEpKSBpZiBlbnRyYWRhLmNvdW50KGkpICUyICE9IDBdKQogICAgCmlmIGxlbihsZXRyYXNfdW5pY2FzKSA+IDE6CiAgIHByaW50KGxlbihsZXRyYXNfdW5pY2FzKS0xKQplbHNlOgogICBwcmludCgwKQ==