Integral measurement of the 12C(n, p)12B reaction up to 10 GeV