SCU 2008 warmup contest 7

A: Ambiguous Codes