# 2019/01/13
# KEYENCE Programming Contest 2019 - B

# Input
s = input()

# Init
key_str = "keyence"
search_idx = 0
ngflg = 0
ngcnt = 0

# Search
for idx in range(len(s)):
    if s[idx] == key_str[search_idx]:
        search_idx += 1
        ngflg = 0
        if search_idx == len(key_str):
            if len(s) > (idx + 1) and ngcnt >= 1:
                search_idx = -1
            break
    else:
        if ngflg == 0:
            ngcnt += 1
            ngflg = 1
        if ngcnt > 1:
            break

# Check
if search_idx == len(key_str):
    ans = "YES"
else:
    ans = "NO"

# Output
print(ans)
