S = input()

len_s = len(S)

key_s = "keyence"
len_key_s = len(key_s)

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

    if ok: # keyencee
        print("YES")
    else:
        for rev_char_i in range(len_key_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")
else:
    print("NO")