Contest Round #220 Div 2

12/18/13 from 7:30 to 9:30
Contest changed to unrated because of misstated problem statement for B.
Neither file gives a correct answer when judged by CodeForces.