S = input()
if S[0:7] == "keyence":
    print("YES")
elif S[len(S)-8:len(S)-1] == "keyence":
    print("YES")
else:
    if (S[0] == "k")and(S[len(S)-7:len(S)-1] == "eyence"):
        print("YES")
    elif (S[0] == "ke")and(S[len(S)-6:len(S)-1] == "yence"):
        print("YES")
    elif (S[0] == "key")and(S[len(S)-5:len(S)-1] == "ence"):
        print("YES")
    elif (S[0] == "keye")and(S[len(S)-4:len(S)-1] == "nce"):
        print("YES")
    elif (S[0] == "keyen")and(S[len(S)-3:len(S)-1] == "ce"):
        print("YES")
    elif (S[0] == "keyenc")and(S[len(S)-2:len(S)-1] == "e"):
        print("YES")
    else:
        print("NO")
