n=input() b=['w','h','i','l','e'] count=0 for i in range(5): if n[i] not in b[i]: count+=1 print(count)