S = input()


x = "keyence"

if S[:7] == x:
    print("YES")
    exit()

for i in range(0,len(x)):
    print(S[:i]== x[:i] , S[-(7-i):] == x[i:])
    if S[:i]== x[:i] and S[-(7-i):] == x[i:] :
        print("YES")
        exit()
    # tr:
    #     index1 = S.index(x[:i])
    #     index2 = S.rindex(x[i:])
    #     print(index1,index2)
    #     if index1==0 and index2+i == len(S) and index1<index2:
    #         print(index1,index2)
    #         print("YES")
    #         exit()
    # except ValueError:
    #     continue
print("NO")