Offline Java Coding Contest (round 2)