The other way is by heating ammonium nitrate at temperature 240 degrees Celsius.