s = str(input())
t = 'keyence'

if len(s) < len(t):
    print('NO')
    exit()

if s[0:len(t)] == t:
    print('YES')
    exit()

if s[len(s)-len(t):len(s)] == t:
    print('YES')
    exit()

for i in range(len(t)):
    if s[0:i+1] == t[0:i+1] and s[len(s)-(i+1):len(s)] == t[len(t)-(i+1):len(t)]:
        print('YES')
        exit()
else:
    print('NO')
