SCU 2008 warmup contest 3

A: Gamblers