s=input() ans='YES' for i in range(len(s)-1): if s.count(s[i])>=2: ans='NO' break print(ans)