If one root of quadratic equation −x2+ax+b=0, where a, b, c are real, is -1+2i, then the value of a+b is .