import bisect,collections,copy,itertools,math,string
import sys
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())
def main():
    s = S()
    key_lst = []
    for i in range(1,7):
        key_lst.append(["keyence"[:i],"keyence"[i:]])
    ans = False
    for b,f in key_lst:
        before = s.find(b)
        if before != -1:
            start = before+(len(b)-1) + 1
            afst = s[start:]
            after = afst.find(f)
            if after != -1:
                ans = True
    print("YES" if ans else "NO")
main()                  
