
a= input()

if ('k' in a and 'eyence' in a):
    print("YES")
elif('ke' in a and'yence' in a):
    print("YES")
elif('key' in a and 'ence' in a):
    print("YES")
elif('keye' in a and 'nce' in a):
    print("YES");
elif('keyen' in a and 'ce' in a):
    print("YES")
elif('keyenc' in a and 'e' in a):
    print("YES")
else:
    print("NO")