stuff from ICPC, super awesome stuff
Could be better, but I like the elegance