Adding ax+by+cz=n