S = input()

target = "keyence"

for i in range(len(target)):
    if target[:i] in S:
        continue
    else:
        if target[i:] in S:
            print("YES")
        else:
            print("NO")
        break
else:
    print("YES")