SCU 2008 warmup contest 2

A: Random Route