import sys

s = input()

f = True
ac = 'keyence'
i = 0
j = 0

while i < len(s):
    if s[i] == ac[j] and f:
        i += 1
        j += 1
    elif f:
        k = 1
        l = 1
        while abs(k) < len(ac) - j:
            if s[len(s) - k] == ac[len(ac) - l]:
                k += 1
                l += 1
            else:
                print('NO')
                sys.exit()
        break
    else:
        print('NO')
        sys.exit()

print('YES')

