Nine times a certain integer is 18 less than the square of the integer. Find the integer.