from collections import Counter as c print("YES" if set(c(input()).values())=={1} else "NO")