import java.util.*;
public class A{
  public static void main(string[] args){
    Scanner sc = new Scanner(System.in);
    int t = sc.nextInt();
   int r = 2*3.14*t;
    System.out.println(r);
  }}
      