solution for file fix-it from 2010 round 1B problem A