s = input()
t = 'keyence'

count = 0
count2 = 0
flag = True

for i in s:
    if i == t[count]:
        count += 1
        flag = True
    else:
        if flag:
            count2 += 1
            flag = False
        else:
            pass

if count2 <= 1 and count == len(t):
    print('YES')
else:
    print('NO')
