def main():
    S = input()

    exam = list("keyence")

    for s in S:
        if s == exam[0]:
            exam.pop(0)
    if len(exam) == 0:
        print("YES")
    else:
        print("NO")


    return 0

if __name__ == '__main__':
    main()