SCU 2008 warmup contest 7

D: Drop the Triples