import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int T = sc.nextInt(); for( int i = 0; i < T; i++ ) { long N = sc.nextLong(); double[] nt = new double[500]; nt[0] = N; for( int j = 1; j < 500; j++ ) { nt[j] = nt[j-1]-(nt[j-1]*nt[j-1]-N)/(2*nt[j-1]); } System.out.println((int)Math.floor(nt[499])); } } }