GCJ2013 round1A

A-large and B-large is passed on practice.