This is my realization it works, but i get wrong answer on acm.timus.ru
import java.io.PrintWriter;
import java.util.Scanner;
public class SqrtBack{
public static void main(String[] args){
Scanner in = new Scanner(System.in);
int count = 0;
PrintWriter out = new PrintWriter(System.out);
long[] arr = new long[131072];
while(in.hasNextLong()){
arr[count] = in.nextLong();
count++;
}
for(int i = arr.length-1; i>=0; i--){
System.out.printf("%.4f%n", (Math.sqrt(arr[i])));
}
out.flush();
}
}