solved 2014 qualification round D.