Evaluate the integral?

Evaluate #int_0^pif(x)dx# where
f(x)= piecewise sin(x) if 0 #<=# x #<=# #pi/2# and x if #pi/2# #<=# x #<=# #pi#