it kind of works
codejam 2014