S = list(input())
keyword = list('keyence')

cur = 0
ans = "NO"
while cur < len(S):
    target = keyword[0]
    if S[cur] == target:
        keyword.pop(0)
    if len(keyword) == 0:
        ans = "YES"
        break
    cur += 1
    
print(ans)