SCU 2006 Warmup Contest 10

F: Griddy Hobby