s = input() l = [s.count(i) for i in s] print(['NO', 'YES'][sum(l) == len(s)])