Solution for the 2014 qualifier