# -*- coding: utf-8 -*-

## Library

import sys
from fractions import gcd
import math
from math import ceil,floor
import collections
from collections import Counter
import itertools
import copy

## input

# N=int(input())
# A,B,C,D=map(int, input().split())
# S = input()
# yoko = list(map(int, input().split()))
# tate = [int(input()) for _ in range(N)]
# N, M = map(int,input().split()) 
#    P = [list(map(int,input().split())) for i in range(M)]
#    S = []
#    for _ in range(N):
#        S.append(list(input()))

S = input()

# keyenceXXXXX
# YYYYkeyence
# keyZZZZZence

if S[0:7] == "keyence" or S[len(S)-7:len(S)] == "keyence" :
    print("YES")
    sys.exit()

if S[0:3] == "key" and S[len(S)-4:len(S)] == "ence":
    print("YES")
    sys.exit()

print("NO")