import re
S=input()
patterns=[]
keyence = "keyence"
for i in range(1,len(keyence)):
    patterns.append(keyence[:i]+'[a-z]*'+keyence[i:])
for p in patterns:
    if re.match(p,S):
        print('YES')
        exit()
print('NO')