The square of a number decreased by 5 is the same as 3 more than 7 times the number. Find the number.