A string is called a KEYENCE string when it can be changed to `keyence` by removing its contiguous substring (possibly empty) only once.  Given a string S consisting of lowercase English letters, determine if S is a KEYENCE string.
s = input()
key = "keyence"
for i in range(len(key)):
    if key[: i] in s and key[i:] in s:
        print("Yes")
        exit()

print("No")
s = input()
key = "keyence"
j = 0
while j < len(key) and s[j] == key[j]:
    j += 1

j -= 1
for i in range(len(key) - j - 1):
    if s[len(s) - 1 - i] != key[len(key) - 1 - i]:
        print("NO")
        exit()
print("YES")