# -*- coding: utf-8 -*-
import re,io,sys
sys.stdout=io.TextIOWrapper(sys.stdout.buffer,encoding="utf-8")
def load(f):
    t=open(f,encoding="utf-8").read()
    t=re.sub(r"<script.*?</script>","",t,flags=re.S); t=re.sub(r"<style.*?</style>","",t,flags=re.S)
    t=re.sub(r"<[^>]+>"," ",t); return re.sub(r"\s+"," ",t).strip()
req=load("_duke_mems_pratt-req.html")
print(req[27000:30200])
print("\n\n===PRELUDE 8000-10500===")
print(req[8000:10500])
