s = input() s.split() ans ="YES" for i in range(len(s)-1): if s.count(s[i]) > 1: ans = "NO" print(ans)