refactoring t1a t1b
refactoring t1c

print ' '.join(map(str, pos))
refractorying t1d

needs window(size=L) check routine
trying stronghold iprb

needs precise algorithm