s = input()
t = 'keyence'

count = 0
count2 = 0
flag = True

for i in s:
    if count < len(t):
        if i == t[count]:
            count += 1
            flag = True
        else:
            if flag:
                count2 += 1
                flag = False
            else:
                pass
    else:
        count2 += 1
        break
        
if count2 <= 1 and count == len(t):
    print('YES')
else:
    print('NO')
