s = input()
t = "keyence"
p = 0
for i in range(len(s)):
    if p == 0:
        if i <= 6:
            if s[i] != t[i]:
                k = i
                p = 1
    elif p == 1:
        if s[i] == t[k]:
            j = i
            p = 2
        if i == len(s) - 1:
            print("No")
            exit()
    elif p == 2:
        if k + i - j <= 6:
            if s[i] != t[k + i - j]:
                print("No")
                exit()
        else:
            print("No")
            exit()
print("Yes")