codejam: added 2014 Round 1A Problem C