public static void main(String[] args) {
int a, b, x, c;
double U;
Scanner in = new Scanner(System.in);
System.out.print("a -ni kiriting - ");
a = in.nextInt();
System.out.print("b -ni kiriting - ");
b = in.nextInt();
System.out.print("c -ni kiriting - ");
c = in.nextInt();
System.out.print("x -ni kiriting - ");
x = in.nextInt();
if (a > (b * b) && (a - b * b) != 0) {
U = (((double) (a * a + 4 * a * b * c + c * c)) / ((double) (a - b * b)));
System.out.println("U= " + U);
} else if (x != 0) {
U = ((Math.pow((double) (2 * a) / (double) c * c, (3 / 2))) + (Math.pow((double) (c * c) / (double) (x * x), (5 / 2))));
System.out.println("U= " + U);
}
}
}