from collections import defaultdict dd = defaultdict(int) s = input() for ss in s: dd[ss] += 1 if dd[ss] == 2: print("NO") exit() else: print("YES")