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