CF799G Cut the pie

Description

Arkady reached the $ n $ -th level in Township game, so Masha decided to bake a pie for him! Of course, the pie has a shape of convex $ n $ -gon, i.e. a polygon with $ n $ vertices. Arkady decided to cut the pie in two equal in area parts by cutting it by a straight line, so that he can eat one of them and give the other to Masha. There is a difficulty because Arkady has already put a knife at some point of the pie, so he now has to cut the pie by a straight line passing trough this point. Help Arkady: find a line that passes through the point Arkady has put a knife into and cuts the pie into two parts of equal area, or determine that it's impossible. Your program has to quickly answer many queries with the same pie, but different points in which Arkady puts a knife.

Input Format

The first line contains two integers $ n $ and $ q $ ( $ 3

Output Format

For each query print single integer — the polar angle of the line that is the answer for the corresponding query, in radians. The angle should be in the segment $ [0;π] $ , the angles are measured from the direction of $ OX $ axis in counter-clockwise order. For example, the polar angle of the $ OY $ axis is ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF799G/e8aab5e80ab4b1c7e7a46f52a66db3924c59f50c.png). If there is no answer in that query, print -1. If there are several answers, print any of them. Your answer is considered correct if the difference between the areas of the parts divided by the total area of the polygon doesn't exceed $ 10^{-4} $ by absolute value. In other words, if $ a $ and $ b $ are the areas of the parts after the cut, then your answer is correct if and only of ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF799G/73f1343c93251c44f6e2dcffef14c4b5ff6bad3b.png).