import math
pi = math.pi
a = input().split(" ")
for i in a:
r = int(i)
print("%.3f" % (pi*r*r*r/3*4), "%.3f" % (4*pi*r*r))
import math
pi = math.pi
a = input().split(" ")
for i in a:
r = int(i)
print("%.3f" % (pi*r*r*r/3*4), "%.3f" % (4*pi*r*r))