Finish 2012 progfest problem 3 (Matchsticks)