#include using namespace std; typedef long long ll; typedef vector vi; typedef pair pii; #define MP make_pair #define PB push_back #define inf 1000000007 #define rep(i,n) for(int i = 0; i < (int)(n); ++i) #define all(x) (x).begin(),(x).end() template void Fill(A (&array)[N], const T &val){ std::fill( (T*)array, (T*)(array+N), val ); } template inline bool chmax(T &a, T b){ if(a inline bool chmin(T &a, T b){ if(a>b){ a = b; return true; } return false; } //S = 8.245 + 6.807 * H + 7.073 * FFC int main(){ double a,b; cin >> a >> b; cout << fixed << setprecision(30) << -8.245 + 6.807*a + 7.073*b*2*3.1415926535 << endl; return 0; }