已知x2-5x-1991=0,则代数式(x−2)4+(x−1)2−1(x−1)(x−2)的值为(  )