s = input()
k = 'keyence'
ans = 'NO'
for i in range(len(k)):
    k1 = k[:i + 1]
    k2 = k[i + 1:]
    temp = s.replace(k1, '')
    temp = temp.replace(k2, '')
    if k1 in s and k2 in s and temp in s:
        ans = 'YES'
        break
print(ans)
