import std.stdio;
import std.conv;
import std.string;
import std.format;
 
void main()
{
  string s = chomp(readln());
  int r = to!int(s.split(" ")[0]);
 
  float pi = 3.14;
  float S = pi * r * r;
  float R = 2 * pi * r;
 
  writefln("%f %f", S, R);
}