import java.util.*; public class e { static int n = 0; static double p = 0.0, s = 0.0, v = 0.0; public static void main(String[] args) { Scanner scan = new Scanner(System.in); n = scan.nextInt(); p = scan.nextDouble(); s = scan.nextDouble(); v = scan.nextDouble(); double left = 0.0, right = 100; /*if (derivative(left) >= 0) System.out.println("left is bad"); if (derivative(right) <= 0) System.out.println("right is bad");*/ while (right - left > 1e-8) { double c = (right + left) / 2; if (derivative(c) > 0) right = c; else left = c; } double c = (right + left) / 2; System.out.println(time(c) + " " + c); } public static double time(double c) { double time1 = n * Math.pow(Math.log(n) / Math.log(2), c * Math.sqrt(2)) / p / Math.pow(10, 9); double time2 = s / v * (1 + 1/c); return time1 + time2; } public static double derivative(double c) { double delta = 1e-8; return (time(c + delta) - time(c - delta)) / 2 / delta; } }