#include using namespace std; using int64 = long long; int main() { double A, B; cin >> A >> B; cout << fixed << setprecision(10) << 2 * acos(-1) * (B - A) << endl; return (0); }