Integrate[Abs[Sin[x]+Sin[6x]+Sin[36x]],{x,0,Pi}]