# -*- coding: utf-8 -*-
import io,sys,ssl,urllib.request,re
sys.stdout=io.TextIOWrapper(sys.stdout.buffer,encoding="utf-8")
ctx=ssl.create_default_context(); ctx.check_hostname=False; ctx.verify_mode=ssl.CERT_NONE
urls=[
 "https://www.sgs.utoronto.ca/programs/statistics/",
 "https://www.statistics.utoronto.ca/graduate",
 "https://www.statistics.utoronto.ca/graduate-programs",
 "https://www.statistics.utoronto.ca/graduate/admissions",
]
for u in urls:
    try:
        req=urllib.request.Request(u,headers={"User-Agent":"Mozilla/5.0"})
        r=urllib.request.urlopen(req,timeout=15,context=ctx)
        t=r.read().decode("utf-8","ignore")
        print("OK",r.status,len(t),u)
    except Exception as e:
        print("FAIL",type(e).__name__,str(e)[:80],u)
