codejam 2009 qual-a and 1c-a