S = input()

keyence = "keyence1"
n = 0
f = False
f2 = False
for s in S:
    if keyence[n] == s:
        n += 1
        if f:
            f2 = True
    else:
        if f2:
            print("NO")
            break
        f = True

else:
    if n == 7:
        print("YES")
    else:
        print("NO")
            