from decimal import Decimal as de h,r=map(de,input().split()) pi=de("3.141592653") print(2*pi*r*h*4+4*pi*r**2)