Problem F of SWERC 2009 started, A of 2008 finished but needs some work,
null pointer exceptions on hashmaps.