# Slurp file into list
with open(sys.argv[1]) as f:
names = f.read().splitlines()
to_search = sys.argv[2].lower()
answer = [x for x in names if all(True if to_search.count(item) <= x.lower().count(item) else False for item in set(to_search))]
print answer