S = input() for i in range(26): c = chr(ord("A") + i) if S.count(c) > 1: print("NO") exit() print("YES")