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