#!/usr/bin/env python2

import urllib2, bs4, sys

try:
    print bs4.BeautifulSoup(open(sys.argv[1]).read(1048576), "lxml").title.string.strip()
except:
    pass

sys.stdout.flush()
