while True:
try:
entrada = input()
except EOFError:
break
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)
d2hpbGUgVHJ1ZToKICAgdHJ5OgogICAgICBlbnRyYWRhID0gaW5wdXQoKQogICBleGNlcHQgRU9GRXJyb3I6CiAgICAgIGJyZWFrCgogICBsZXRyYXNfdW5pY2FzID0gc2V0KFtpIGZvciBpIGluIHNldChsaXN0KGVudHJhZGEpKSBpZiBlbnRyYWRhLmNvdW50KGkpICUyICE9IDBdKQogICAgCiAgIGlmIGxlbihsZXRyYXNfdW5pY2FzKSA+IDE6CiAgICAgIHByaW50KGxlbihsZXRyYXNfdW5pY2FzKS0xKQogICBlbHNlOgogICAgICBwcmludCgwKQo=