/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
Scanner in
= new Scanner
(System.
in); int n = in.nextInt();
int[] a = new int[n];
for (int i=0; i<n; i++){
a[i] = in.nextInt();
}
double sum=0;
int f=1;
for (int i=1; i<=n; i++){
f*=i;
double sign = (i%2==0) ? 1 : -1;
sum+=(sign*a[i-1])/f;
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uewogICAgICAgICAgICAgICAgU2Nhbm5lciBpbiA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CiAgICAgICAgICAgICAgICBpbnQgbiA9IGluLm5leHRJbnQoKTsKICAgICAgICAgICAgICAgIGludFtdIGEgPSBuZXcgaW50W25dOwogICAgICAgICAgICAgICAgZm9yIChpbnQgaT0wOyBpPG47IGkrKyl7CiAgICAgICAgICAgICAgICAgICAgIGFbaV0gPSBpbi5uZXh0SW50KCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICBkb3VibGUgc3VtPTA7CiAgICAgICAgICAgICAgICBpbnQgZj0xOwogICAgICAgICAgICAgICAgZm9yIChpbnQgaT0xOyBpPD1uOyBpKyspewogICAgICAgICAgICAgICAgICAgICBmKj1pOwogICAgICAgICAgICAgICAgICAgICBkb3VibGUgc2lnbiA9IChpJTI9PTApID8gMSA6IC0xOwogICAgICAgICAgICAgICAgICAgICBzdW0rPShzaWduKmFbaS0xXSkvZjsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihzdW0pOwoJfQp9