BH-326 (rewrite the problem)