import sys
import math
input = sys.stdin.buffer.readline
def int_array():
	return list(map(int, input().strip().split()))
def str_array():
	return input().strip().split()
 
######################## TEMPLATE ENDS HERE ########################

r = int(input())
print(2*(22/7)*r)