Test For An Intern

아직 제출이 없습니다시간 제한5초메모리 제한256 MB

문제

Yandex company, as well as many other companies around the world, allows students to get an experience of working as a developer in a large software company by offering internship options to them. All the interns are being interviewed (almost) like real programmers, they are being asked for their knowledge of algorithms, for their understanding of OOP principles and for many other things mostly depending on the area the internship candidate wants to work on.

You are dreaming about working in the team of Yandex.Maps. As a team that is closely related to geography, the developers of Maps face lots of geometric problems that involve dealing with complex regions on the world maps. One of the questions that they may ask (Actually not, relax :)) you during an interview is described in the next paragraph.

Consider two convex polygons located on the plane. You are allowed to shift the second polygon arbitrarily without any rotations or reflections. Write a program that finds a shift vector for the second polygon such that the area of the union of the first polygon and the shifted second polygon equals to exactly SS, or determine that it is not possible.

This position is all you need, so don't lose your chance and solve this problem before they think you are incapable of such easy exercises!

입력

The first line contains two integers nn and mm and a real value SS (3n,m20003 \leq n, m \leq 2000, 0S10130 \leq S \leq 10^{13}), the number of vertices in each of the polygons and the desired union area. The area is given with at most ten digits after the decimal point.

Each of the next nn lines contains two integers x_1,ix\_{1,i} and y_1,iy\_{1,i} (106x_i,y_i106-10^6 \leq x\_i, y\_i \leq 10^6): the coordinates of the vertices of the first polygon in counter-clockwise order.

The next mm lines describe the second polygon in a similar format.

It is guaranteed that both polygons are strictly convex: no three vertices of any polygon lie on the same line.

It is also guaranteed that for any SS' such that SSmax1,S103\frac{|S' - S|}{\max\\{1, |S|\\}} \leq 10^{-3}, the desired shift vector exists or not exists exactly as for the given SS.

출력

On the first line, output either "Yes" or "No" depending on if it is possible to find such a shift vector that the area of union of polygons equals to SS.

If the desired shift vector exists, on the second line, output two real numbers dx\mathit{dx} and dy\mathit{dy} that denote the coordinates of a shift vector of a second polygon.

Your answer will be considered correct if the area of union of the first polygon and the second polygon shifted by your vector has absolute or relative error of no more than 10410^{-4} with respect to SS. That is, if S^\hat{S} is the exact area value that is calculated by your shift vector, the answer will be considered correct if S^SmaxS,1104\frac{|\hat{S} - S|}{\max\\{S, 1\\}} \leq 10^{-4}.

힌트

The illustration for the first sample test is given below: