GCJ round 1B, Codeforces R244div2