s = input()

a = [("k", "eyence"), ("ke", "yence"), ("key", "ence"), ("keye", "nce"), ("keyen", "ce"), ("keyenc", "e")]

flg = 0
for i, j in a:
    s = s.replace(i, "%")
    s = s.replace(j, "&")
    
    if "%" not in s:
        pass
    elif "&" not in s:
        pass
    elif s.index("%") < s.index("&"):
        pass
    else:
        flg = 1
        break
        
if flg == 1:
    l.index("%") <= l.index("&")
else:
    print("NO")