package extra; import java.io.PrintWriter; import java.math.BigDecimal; import java.math.MathContext; import java.util.Arrays; import java.util.Scanner; public class P3072 { static Scanner in; static PrintWriter out; static String INPUT = ""; static MathContext mc = new MathContext(40); static BigDecimal mc(long n){ return BigDecimal.valueOf(n).sqrt(mc); } static void solve() { BigDecimal ret = BigDecimal.ZERO; for(int T = ni();T > 0;T--){ ret = ret.add(mc(nl())); out.println(ret.toPlainString()); } } public static void main(String[] args) throws Exception { in = INPUT.isEmpty() ? new Scanner(System.in) : new Scanner(INPUT); out = new PrintWriter(System.out); solve(); out.flush(); } static int ni() { return Integer.parseInt(in.next()); } static long nl() { return Long.parseLong(in.next()); } static double nd() { return Double.parseDouble(in.next()); } static void tr(Object... o) { if(INPUT.length() != 0)System.out.println(Arrays.deepToString(o)); } }