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 = list("keyence")
    ans = True
    for i in key_lst:
        for j,x in enumerate(s):
            if i == x:
                s = s[j+1:]
                break
        else:
            ans = False
    print("YES" if ans else "NO")
main()                  
