s = input()

length = len(s)
flag = False
if(s == "keyence"):
    flag = True

for k in range(length - 7 + 1):
    for l in range(length):
        r = l + k - 1
        if(l > r):
            continue
        if(s[0:l-1]+s[r+1:length] == "keyence"):
            flag = True

if(flag):
    print("YES")
else:
    print("NO")

