If g:[−2, 2]→R, where f(x)=x3+tanx+[x2+1P] is an odd function, then the value of parameter P, where [.] denotes the greatest integer function, is