import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines from math import pi a,b = map(float,read().split()) answer = 2 * pi * (b - a) print(answer)