
KEY = "keyence"

def main():
    s = input()

    for i in range(1, len(KEY)):
        r = KEY[0:i]
        l = KEY[i:]

        if s.startswith(r) and s.endswith(l):
            print("YES")
            return

    print("No")

main()
