s = input()
key = list("keyence")
count = 0
cut = 0
flag = False
flagexit = False
for c in s:
    if count != 7 and key[count] == c:
        count += 1
        if flag:
            flagexit = True
    else:
        flag = True
        if flagexit:
            print("NO")
            exit()
if count == 7:
    print("YES")
else:
    print("NO")
