public class Test{
 public static void main(String[] args){
   Scanner scan = new Scanner(System.in);
   String str = scan.nextLine();
   int r = Integer.parseInt(str);
   double ans = 2 * r * 3.14;
   System.out.println(ans);
 }
}