import java.util.*;

public class Main {

  static Scanner scan = new Scanner(System.in);

  public static void main(String[] args) {
    int t = scan.nextInt();
    System.out.print(2 * t * 3.14159);
  }
}