def main():
    s=input()
    a="keyence"
    c=[False] * 7
    idx = 0
    skipped = False
    for i in range(len(s)):
        if idx >= len(a):
            print("NO" if skipped else "YES")
            return
        elif s[i] == a[idx]:
            c[idx] = True
            idx += 1
        elif not skipped:
            skipped = True
        else:
            break
    if all(c):
            print("YES")
            return
    print("NO")

if __name__ == "__main__":
    main()