s = input() d = {} for i in range(len(s)): k = s[i:i+1] if k in d: d[k] += 1 else: d[k] = 1 if max(d.values()) == 1: print('YES') else: print('NO')