s=input()
a="keyence"
if a in s:
    print("YES")
    exit()
for i in range(len(a)):
    if a[:i] in s:
        b=s.index(a[:i])
        if a[i:] in s[b:]:
            c=s.index(a[i:])
            #print(s.index(a[i:]),s[s.index(a[i:]):],a[i:])
            if s[c:]==a[i:]:
                print("YES")
                exit()
print("NO")