SCU 2007 warmup contest 15

G: The Lightest Cycle