from collections import * C = Counter(input()) for k, v in C.items(): if v >= 2: print("NO") exit() print("YES")