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 S = r * r * 3.14;
  float l = 2 * 3.14 * r;

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