import math def main(): A, B = (float(input()) for _ in [0] * 2) h = B - A s = 2 * math.pi * h print(s) main()