import std.stdio;
import std.conv;
import std.string;
import std.format;

void main()
{
  string s = chomp(readln());
  float r = to!float(s.split(" ")[0]);

  real pi = "3.14159";
  real S = 2 * r * r * pi;
  real l = 2 * pi * r;

  writefln("%f %f", S, l);
}