package com.company;

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int val = cin.nextInt();
        System.out.println(4*val*Math.acos(0));
    }
}
