s = input()

str_ = "keyence"
a = [(str_[0:i], str_[i:]) for i in range(1, 7)]

flg = 0
for i, j in a:
    s1 = s.split(i)
    s2 = s1[1].split(j)
    
    if len(s2) >= 2:
        pass
    else:
        flg = 1
if flg == 1:
    print("YES")
elif s == "keyence":
    print("YES")
else:
    print("NO")