# -*- coding: utf-8 -*-
import io, sys, re
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")

keys = ["deadline", "GRE", "TOEFL", "IELTS", "credit", "tuition", "fee", "length",
        "semester", "term", "full-time", "part-time", "STEM", "OPT", "recommend",
        "resume", "GPA", "prerequisite", "project", "employer", "salary", "placement",
        "admission", "academic", "degree", "course", "Management", "Ithaca", "online",
        "distance", "scholarship", "fellowship", "experience", "eligibility", "English"]

for f in ["oncampus", "admit", "project", "pep", "career"]:
    txt = open(f"_cornell_mem_{f}.txt", encoding="utf-8").read()
    print("=" * 20, f, "len", len(txt))
    # 去掉重复导航：找第二次出现 Program Highlights 或正文锚点
    # 直接输出 1500 字之后的正文
    print(txt[1500:5200])
    print()
