# -*- coding: utf-8 -*-
import io,sys,urllib.request,ssl,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
u="https://web.cs.toronto.edu/graduate/admissions"
req=urllib.request.Request(u,headers={"User-Agent":"Mozilla/5.0"})
raw=urllib.request.urlopen(req,context=ctx,timeout=25).read().decode("utf-8","ignore")
hrefs=re.findall(r'href="([^"]+)"',raw)
for h in hrefs:
    if any(k in h.lower() for k in ["apply","tuition","funding","fee","english","language","faq","admiss","msc","program"]):
        print(h)
