# -*- coding: utf-8 -*-
import io,sys,re
sys.stdout=io.TextIOWrapper(sys.stdout.buffer,encoding="utf-8")
t=open("_duke_mems_pratt-req.html",encoding="utf-8").read()
txt=re.sub(r"<script.*?</script>","",t,flags=re.S); txt=re.sub(r"<style.*?</style>","",txt,flags=re.S)
txt=re.sub(r"<[^>]+>"," ",txt); txt=re.sub(r"\s+"," ",txt).strip()
for kw in ["Application Fee","application fee","English Language","TOEFL","Duolingo","IELTS","GRE Scores","Video","Interview","Recommendation","three"]:
    for m in re.finditer(re.escape(kw),txt):
        i=m.start()
        print("["+kw+"]",txt[max(0,i-120):i+260])
        print("-"*60)
        break
