from math import *
def rectangle():
  x=1
  u=0
  h=1/2
  for i in range(4):
    u=u+h*sqrt(x)
    x=x+h         
  return u