S = input()
if 'keyence' in S: print("YES")
#elif 'keyenc' in S and S.find('e',S.find('keyenc')+7)!=-1 :print("YES")
elif 'keyen' in S and S.find('ce',S.find('keyen')+6)!=-1 :print("YES")
elif 'keye' in S and S.find('nce',S.find('keye')+5)!=-1 :print("YES")
elif 'key' in S and S.find('ence',S.find('key')+4)!=-1 :print("YES")
elif 'ke' in S and S.find('yence',S.find('ke')+3)!=-1 :print("YES")
elif 'k' in S and S.find('eyence',S.find('k')+2)!=-1 :print("YES")
else : print("NO")