import os
os.system('lynx -dump http://cmcmsu.no-ip.info/2course/ | grep programming.systems | grep .pdf > tmp.txt')
f = open("tmp.txt", "r")
for link in f.readlines():
	os.system("wget " + link)
os.system('rm tmp.txt')