import math

# 创建r_list列表存储输入的球半径
r_list = str(input()).split(" ")

# for循环遍历计算每个半径对应的体积和表面积
for r in r_list:
    V = 4/3*math.pi * math.pow(int(r), 3)
    S = 4*math.pi * math.pow(int(r), 2)
    print("%.3f %.3f" %(V,S))