SP5637 ISUN1 - LL and ErBao

Description

When LL and ErBao were young, they liked jumping rubber-rope (Tiao Pi Jin) very much. They jumped every day happily. But one day HH came and brought away the peaceful days. HH sometimes threw stones to them, and sometimes pushed them down suddenly. Seeing ErBao crying sadly, LL got angry finally, and decided to give HH some color see see. There were n trees on the ground (regarded as points), and LL planed to use his rubber-rope to wrap all the trees and form a big circle, then fooled HH into it and threw stones to him. Before finding out how to fool HH into the circle, LL wants to know how big the rubber-rope circle would be, say, the perimeter. But LL found it difficult than expected, because their playing territory and the trees were in a bigger fence (a simple polygon with m vertices). So, the rubber-rope mustn’t be out of the fence either. It’s your turn to help LL find the perimeter of the circle. **sample 1** ![](https://cdn.luogu.com.cn/upload/vjudge_pic/SP5637/39b639d0193a3d178ca1285a53663c027e513f1e.png) **sample 2** ![](https://cdn.luogu.com.cn/upload/vjudge_pic/SP5637/df9f26cc2448761e9c4e39c266a3795cde74724f.png)

Input Format

The input contains multiple cases terminated with EOF. For each case, first line contains two integers: m, n. (3

Output Format

For each case output the perimeter of the rubber-band with three digits after the dot.