S = input() L = [S.count(s) for s in S] print(['NO', 'YES'][L.count(1) == len(S)])