dic = [] for x in input(): if x in dic: print("NO") break else: dic.append(x) else: print("YES")