import itertools
s=str(input())
n='keyence'
k=''
w=list(itertools.combinations(range(len(s)+1), 2))
print(w)
for i,y in w:
    k=s[i:y]
    ss=s.replace(k,'',1)
    print(ss)
    if ss==n or k==n:
        print('YES')
        exit()
print('NO')