In North Dakota, US 52 continues from Saskatchewan Highway 39 from the Canada–United States border at North Portal, Saskatchewan and Portal, North Dakota to the Red River in Fargo, a distance of 361 miles .