n = gets.to_i
a = Array.new(n){ Complex.rect(*gets.split.map(&:to_f)) }

ans = 0
cnt = 0
a.permutation(n) do |perm|
  perm.each_cons(2) do |i,j|
    ans += (i-j).abs
  end
  cnt += 1
end
puts ans / cnt