hacker cup round 1. Could have gone better