You can Solve a Geometry Problem too

HDU - 1086