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

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

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

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