
s = input()

f = "keyence"
h = 0
for i in range(7):

    first = f[:i+1]
    second = f[i+1:]

    find1 = s.find(first)
    find2 = s.find(second,find1+1)


    if find1 != -1 and find2!=-1:
        print("YES")
        h = 1
        break

if h == 0:
    print("NO")