ABBYY Cup 2.0 Hard Problem B Greedy Merchants