l="keyence"
i=input()
if l in i:
    print("YES")
    exit()
for s in range(1,7):
    if (l[:s] in l) and (l[s:] in l):
        if l.find(l[:s]) < l.find(l[s:]):
            print("YES")
            exit()
print("NO")