import sys
s = input()
l = len(s)

if s[0:6] == 'keyence':
    print('YES')



for i in range(1, l-6):
    a = s[0: i] + s[i + l - 7: l]
    if a == 'keyence':
        print('YES')
        sys.exit()

if s[l-7:l-1] == 'keyence':
    print('YES')

print('NO')