This problem is in Contest(s) below:
Contest 5642:四小社团3