#include<bits/stdc++.h>
using namespace std;
int main()
{
    double a, c, s, pi=3.14159;
    cin>>a;
    c=a*2*pi;
    s=a*a*pi;
    cout<<c<<endl<<s;
    return 0;
}