from math import tau a, b = float(input()), float(input()) print("{:.12f}".format(tau * (b - a)))