s = input()
k = 'keyence'+s
i = c = 0
f = False
for x in s:
    if k[i]==x:
        i+=1
        if f:
            c+=1
            f = False
    else:
        f = True
if f:c+=1
print('YES' if i>6 and c<=1 else 'NO')