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