The number x is such a number that exactly one of the four numbers a=x−2, b=x−1/x, c=x+1/x, d=x2+22 is not an integer. Find all such x.