S = input()

len_s = len(S)

key_s = "keyence"

ok = True
for char_i in range(len_s):
    if key_s[char_i] != S[char_i]:
        first_diff_i = char_i
        ok = False
        break

if ok:
    print("YES")
else:
    for rev_char_i in range(len_s):
        char_i = - rev_char_i - 1
        if key_s[char_i] != S[char_i]:
            end_diff_i = char_i
            break
    mod_S = S[:first_diff_i] + S[end_diff_i+1:]
    if mod_S == key_s:
        print("YES")
    else:
        print("NO")