When a natural number N is divided by D, the remainder is 35. When 50N is divided by D, the remainder is 11. Find D.