If x2 + 6x + c = (x + d)2, then d = .