import java.util.Scanner; public class No236 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int x = sc.nextInt(); int y = sc.nextInt(); double w1=x*b/a - y; double w2=y*a/b - x; System.out.println(w1); System.out.println(w2); double d; if(w1<0){ d = x*b/(double)a + x; }else if(w2<0){ d = y*a/(double)b + y; }else{ d = x+y; } System.out.println(d); } }