# 2020/03/07
# キーエンス プログラミング コンテスト 2019 - B

# Input
s = input()
ts = "keyence"

# Calc
ans = "NO"
idx = 0
turnflg = 0

for i in range(len(s)):
    if s[i] == ts[idx]:
        idx = idx + 1
        if idx >= len(ts):
            ans = "YES"
            break
    else:
        if turnflg == 0:
            turnflg = 1
            idx2 = len(ts)-1
            for j in range(len(ts)-1, 0, -1):
                if s[j] == ts[idx2]:
                    idx2 = idx2 - 1
                    if (idx + idx2) == len(ts):
                        ans = "YES"
                        break
# Output
print(ans)
