S=input()
t='keyence'

for i in range(len(t)-1):
    if S.count(t[:i+1])==1 and S.count(t[i+1:])==1:
        if S.index(t[:i+1])<=S.index(t[i+1:]):
            print('YES')
            break
else:
    print('NO')