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