SCU 2009 warmup contest 10

D: alance