year = 2001
if year >= 2001 and year <= 2006:
    print("Ted Leo and the Pharmacists were with **Lookout Records**")
elif year >= 2007 and year <= 2009:
    print("Ted Leo and the Pharmacists were with **Touch and Go Records**")
elif year >= 2010:
    print("Ted Leo and the Pharmacists were with **Matador Records**")
else:
    print("The band weren't signed to a label in %d, do you have the year correct?") % year
