codejam 351101 B and C