s = input()
st = 'keyence'
index = 0
delete = []
con = False
for i in range(len(s)):
    #print(i, index, s[i], st[index], con)
    if index < len(st) and s[i] == st[index]:
        if index != i:
            con = True
        index += 1
    elif index < len(st) and con:
        print('NO')
        exit()
if index == len(st):
    print('YES')
else:
    print('NO')
