s = input()
a = 'keyence'
flag = 1

for i in range(8):
    if a[0:i] in s:
        index = s.index(a[0:i])
        if a[i:8] in s[index:]:
            print('YES')
            flag = 0
            break

if flag == 1:
    print('NO')
            