
    #include <bits/stdc++.h>
            using namespace std;
             
            int main() {
              float R;
              cin >> R;
             
              cout << 2 * M_PI * R;
            }