def main(): S = input() for s in S: if S.count(s)>1: return print('NO') print('YES') main()