This problem is used in private contest:719dz
725
727dz