import math a = float(input().strip()) b = float(input().strip()) result = 2 * math.pi * (b - a) print("{0:.8f}".format(result))