#include<stdio.h> int main(void) { int i,j,m,n,denominator,flag; double item,sum; scanf("%d",&m); for(j=0;j<m;j++) { scanf("%d",&n); for(i=1;i<=n;i++); { flag=1; sum=0.0; denominator=1; item=flag*1.0/denominator; sum=sum+item; flag=-flag; denominator=denominator+1; } printf("%.2f\n",sum); } return 0; }