s = input()
cmp_s = 'keyence'

n = len(s)

i = 0
j = 0
cnt = 0
L = 0
R = 0
for v in cmp_s:
    if v == s[i]:
        i+=1
    else:
        L = i
        while v != s[i]:
            i += 1
            if i == n:
                break
        R = i
        break
if s[0:L]+s[R:] == cmp_s or (L == 0 and R == 0):
    print('YES')
else:
    print('NO')
