#include <iostream>
#include <iomanip>
#include <cmath>
using std::cin;
using std::cout;
using std::endl;
using std::setprecision;
using std::fixed;
int main()
{
int n;
double r,s=0,x,y,x0,y0,xn,yn;
cin >> n >> r;
if (n==1) {
cin >> x >> y;
xn=x, yn=y;
}
if (n>1) {
cin >> x >> y;
xn=x, yn=y;
for (int i=1;i<=n-1;i++) {
cin >> x0 >> y0;
s=s+sqrt((x0-x)*(x0-x)+(y0-y)*(y0-y));
x=x0;y=y0;
}
s=s+sqrt((xn-x)*(xn-x)+(yn-y)*(yn-y));
}
s=s+2*3.1415*r;
cout << fixed << setprecision(2) << s << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aW9tYW5pcD4KI2luY2x1ZGUgPGNtYXRoPgp1c2luZyBzdGQ6OmNpbjsKdXNpbmcgc3RkOjpjb3V0Owp1c2luZyBzdGQ6OmVuZGw7CnVzaW5nIHN0ZDo6c2V0cHJlY2lzaW9uOwp1c2luZyBzdGQ6OmZpeGVkOwppbnQgbWFpbigpCnsKICAgIGludCBuOwogICAgZG91YmxlIHIscz0wLHgseSx4MCx5MCx4bix5bjsKICAgIGNpbiA+PiBuID4+IHI7CiAgICBpZiAobj09MSkgewogICAgICAgIGNpbiA+PiB4ID4+IHk7CiAgICAgICAgeG49eCwgIHluPXk7CiAgICB9CiAgICBpZiAobj4xKSB7CgogICAgICAgICAgICBjaW4gPj4geCA+PiB5OwogICAgeG49eCwgeW49eTsKICAgIGZvciAoaW50IGk9MTtpPD1uLTE7aSsrKSB7CiAgICBjaW4gPj4geDAgPj4geTA7CiAgICBzPXMrc3FydCgoeDAteCkqKHgwLXgpKyh5MC15KSooeTAteSkpOwogICAgeD14MDt5PXkwOwogICAgfQogICAgcz1zK3NxcnQoKHhuLXgpKih4bi14KSsoeW4teSkqKHluLXkpKTsKICAgICAgICAgICAgfQpzPXMrMiozLjE0MTUqcjsKY291dCA8PCBmaXhlZCA8PCBzZXRwcmVjaXNpb24oMikgPDwgcyA8PCBlbmRsOwoKICAgIHJldHVybiAwOwp9