Problem 1459: Power Network. Solved on 09/18/2014.