﻿from math import sqrt
def A(n):
    u=1
    v=2/sqrt(3)
    for k in range(n):
        v=(u*v)/(u+v)
        u=sqrt(u*v/2)
    return 3*2**n*u,3*2**n*v

print(A(5),A(10))
