The exact mass gap of the O(3) and O(4) non-linear σ-models in d = 2