The coordinates of the point P on the curve x=a(θ+sinθ),y=a(1−cosθ) where the tangent is inclined at an angle π4 to the x-axis, are