import math
import sys
import collections
import bisect
readline = sys.stdin.readline


def main():
    keyence = "keyence"
    s = list(readline().rstrip())
    lenS = len(s)
    cnt = 0
    for i in range(lenS):
        if keyence[cnt] == s[i]:
            cnt += 1
        if cnt == 7:
            print("YES")
            return
    print("NO")


if __name__ == '__main__':
    main()
