The sum of roots of the equation cos−1(cosx)=[x], where [.] denotes the greatest integer function is
The number of solutions of equation [sin x ] = [1 + sin x] + [ 1 - cos x] where [.] denotes the greatest integer function and is