def main():
    S = input()
    T = "keyence"
    for i in range(len(S)-7+1):
        skiped = False
        idx = 0
        j = i
        while j < len(S):
            if S[j] == T[idx]:
                idx += 1
            elif skiped:
                break
            else:
                while j + 1 < len(S) and S[j + 1] != T[idx]:
                    j += 1
                skiped = True
            if idx == 7:
                print("YES")
                return
            j += 1
    print("NO")


if __name__ == '__main__':
    main()
