SCU 2011 team contest 4

A: Alignment of Code