import math pi = 3.14159265358979323846264338 a = float(input()) b = float(input()) print(2*pi*(b-a))