2014 Mudanjiang Online Contest Problem D We Need Medicine