more problems from GoogleCodeJam2014