import std.stdio, std.string, std.conv;
import std.math;

void main() {
    auto input = getStdin!(real[])[0];
    auto area = input * input * PI;
    auto diameter = input * PI * 2.0;
    writefln("%.6f %.6f", area, diameter);
}

T getStdin(T)() {
    string[] cmd;
    string line;
    while ((line = chomp(stdin.readln())) != "") cmd ~= line;
    return to!(T)(cmd);
}