#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int i;
int n;
double sum=0;
cin>>n;
double a;
for(i=1;i<=n;++i)
{
cin>>a;
sum+=sqrt(10+a*a);
}
cout<<sum;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWF0aC5oPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKQp7CglpbnQgaTsKCWludCBuOwoJZG91YmxlIHN1bT0wOwoJY2luPj5uOwoJZG91YmxlIGE7CiAgICBmb3IoaT0xO2k8PW47KytpKQogICAgewogICAgCWNpbj4+YTsKICAgIAlzdW0rPXNxcnQoMTArYSphKTsKICAgIH0KICAgIGNvdXQ8PHN1bTsKICAgIHJldHVybiAwOwp9