import numpy as np def main(): a = np.float64(input()) b = np.float64(input()) ans = 2 * (b - a) * np.pi print(ans) if __name__ == "__main__": main()