n=input() p=0 f=['h','e','l','l','o'] for i in n: if f[p]==i: p+=1 if p==4: break if p==4: print('YES') else: print('NO')