s = input()
key = "keyence"
count = 0
flag = False
flagexit = False

if s == key:
    print("YES")
    exit()

for c in s:
    if count == 7:
        if flag:
            print("NO")
            exit()
        continue
    if 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")
