public class Euler197 {
    public static void main(String[] args) {
        double u = -1.0;
        for (int i = 0; i < 1000; i++)
            u = Math.floor(Math.pow(2, 30.403243784 - u * u)) * 1e-9;
        double v = Math.floor(Math.pow(2, 30.403243784 - u * u)) * 1e-9;
        System.out.printf("%.9f%n", u + v);
    }
}
