s = input()
ans = "keyence"
i = 0
cout = False

for i in range(1, len(ans)):
    if s.find(ans[:i]) + 1:
        if s.find(ans[i:]) + 1:
            if (len(ans) - i) + s.find(ans[i:]) == len(s):
                cout = cout or True
            else:
                cout = cout or False

if cout == True:
    print("YES")
else:
    print("NO")
