r,d=input().split()r=float(r)d=float(d)pi=3.141592654R= r*r-(d*d)/4pole= R*pi print(pole)
1000 1500
1374446.786125
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!