Round 1A 2014

Problem A. Charging Chaos