#!/usr/bin/env python3
import collections
import itertools as it
import math
#import numpy as np
 
s  = input()
#  = int(input())
#  = map(int, input().split())
#  = list(map(int, input().split()))
#  = [int(input()) for i in range(N)]
#
# c = collections.Counter()

query = list('keyence')

for p in range(8):
    b = ''.join(query[:p])
    a = ''.join(query[p:])

    if b in s and a in s:
        if s == 'keyence':
            print('YES')
            break
        if len(s.split(b)[1].split(a)) == 2:
            print('YES')
            break
else:
    print('NO')
