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]);

  float pi = to!float("3.14");
  float S = r * r * pi;
  float l = 2 * pi * r;

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