// Vicfred
// https://atcoder.jp/contests/abc163/tasks/abc163_a
// math
import std.math;
import std.conv;
import std.stdio;
import std.string;

void main() {
    int r = readln.chomp.to!int;
    writefln("%0.12f", 2.0*PI*r);
}

