def resolve():
    S = input()
    if S == "keyence":
        print("YES")
    else:
        for i in range(1, len(S)-2):
            for j in range(i+2, len(S)-2):
                if S[:i+1]+S[j:] == "keyence":
                    print("YES")
                    exit()
        print("NO")
resolve()