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.


# input process
S = input()
s_length = len(S)


is_same = False
for i in range(s_length):
    for j in range(i, s_length):
        # string slice
        tmp_str = S[:i] + S[j:]
        if tmp_str=="keyence":
            is_same = True
            break

if is_same:
    print("Yes")
else:
    print("No")



# input
s = input()
s_l = len(s)


is_ok = False


for i in range(s_l):
    for j in range(i, s_l):
        tmp_s = s[:i] + s[j:]
        if tmp_s=='keyence':
            is_ok = True
            break

# output
if is_ok:
    print("YES")
else:
    print("NO")
