2010 Google Code Jam Round 1A Rotate