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