S = input()
key_str = 'keyence'

ans = 'YES'
idx = 0
for key in key_str:
    exsist_key = False
    for i in range(idx, len(S)):
        if key == S[i]:
            exsist_key = True
            idx = i+1
            break

    if not exsist_key:
        ans = 'NO'
        break
print(ans)
