S=input()
length=len(S)
ans='NO'
if S[0:7]=='keyence':
    ans='Yes'
elif S[-7:]=='keyence':
    ans='Yes'
elif S[0]=='k' and S[-6:]=='eyence':
    ans='Yes'
elif S[0:2]=='ke' and S[-5:]=='yence':
    ans='Yes'
elif S[0:3]=='key' and S[-4:]=='ence':
    ans='Yes'
elif S[0:4]=='keye' and S[-3:]=='nce':
    ans='Yes'
elif S[0:5]=='keyen' and S[-2:]=='ce':
    ans='Yes'
elif S[0:6]=='keyenc' and S[-1:]=='e':
    ans='yes'

print(ans)