#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, double *, double *, double *);
double sqrt(double);
int main() {
  double a, b, c, delta, x1, x2;
  scanf("%lf%lf%lf", &a, &b, &c);
  if (a == 0)
    printf("NEESG\n");
  else {
    delta = (b * b) - (4 * a * c);
    if (delta > -0.0000000001 && delta < 0.000000001)
      delta = 0;
    if (delta < 0)
      printf("NRR\n");
    else if (delta == 0) {
      printf("%.2f\n", (-b / (2 * a)));
      printf("%.2f\n", (-b / (2 * a)));
    } else {
      x1 = (-b + sqrt(delta)) / (2 * a);
      x2 = (-b - sqrt(delta)) / (2 * a);
      printf("%.2f\n%.2f\n", x1, x2);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x20(%rbp),%rcx
call   1040 <scanf@plt>
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1182 <main+0x52>
jp     1182 <main+0x52>
lea    0xeb4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1364 <main+0x234>
movsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
movsd  0xe74(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
mulsd  -0x20(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  0xe31(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    11f4 <main+0xc4>
movsd  0xe2f(%rip),%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    11f4 <main+0xc4>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x28(%rbp),%xmm0
jbe    1215 <main+0xe5>
lea    0xe28(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    135f <main+0x22f>
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    12a8 <main+0x178>
jp     12a8 <main+0x178>
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xdc7(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
lea    0xdda(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  0xd8c(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
lea    0xd9f(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    135a <main+0x22a>
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1050 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
addsd  %xmm1,%xmm0
movsd  0xd31(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x18(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x28(%rbp),%xmm0
call   1050 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  -0x40(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  0xce4(%rip),%xmm1
mulsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
lea    0xce3(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
jmp    135f <main+0x22f>
jmp    1364 <main+0x234>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x40,%rsp
lea    0xee4(%rip),%rdi
mov    %rsp,%rsi
lea    0x8(%rsp),%rdx
lea    0x38(%rsp),%rcx
call   1050 <scanf@plt>
movsd  (%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1180 <main+0x40>
jp     1180 <main+0x40>
lea    0xed3(%rip),%rdi
call   1030 <puts@plt>
jmp    12ef <main+0x1af>
movsd  0x8(%rsp),%xmm4
movsd  0xe72(%rip),%xmm2
mulsd  %xmm0,%xmm2
mulsd  0x38(%rsp),%xmm2
movapd %xmm4,%xmm3
mulsd  %xmm4,%xmm3
addsd  %xmm2,%xmm3
movsd  0xe5c(%rip),%xmm2
cmpltsd %xmm3,%xmm2
movapd %xmm3,%xmm5
cmpltsd 0xe52(%rip),%xmm5
andnpd %xmm3,%xmm5
andpd  %xmm2,%xmm5
andnpd %xmm3,%xmm2
orpd   %xmm2,%xmm5
ucomisd %xmm5,%xmm1
jbe    11e5 <main+0xa5>
lea    0xe6a(%rip),%rdi
call   1030 <puts@plt>
jmp    12ef <main+0x1af>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm5
jne    1240 <main+0x100>
jp     1240 <main+0x100>
xorpd  0xe27(%rip),%xmm4
addsd  %xmm0,%xmm0
divsd  %xmm0,%xmm4
lea    0xe37(%rip),%rbx
mov    %rbx,%rdi
movapd %xmm4,%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0x8(%rsp),%xmm0
xorpd  0xdfc(%rip),%xmm0
movsd  (%rsp),%xmm1
addsd  %xmm1,%xmm1
divsd  %xmm1,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    12ef <main+0x1af>
xorps  %xmm2,%xmm2
sqrtsd %xmm5,%xmm2
movapd %xmm2,%xmm3
jae    127e <main+0x13e>
movapd %xmm5,%xmm0
movapd %xmm4,0x20(%rsp)
movapd %xmm5,0x10(%rsp)
movsd  %xmm2,0x30(%rsp)
call   1060 <sqrt@plt>
movsd  0x30(%rsp),%xmm2
movapd 0x10(%rsp),%xmm5
movapd 0x20(%rsp),%xmm4
movapd %xmm0,%xmm3
subsd  %xmm4,%xmm3
movsd  (%rsp),%xmm0
addsd  %xmm0,%xmm0
movsd  0x8(%rsp),%xmm1
xorpd  0xd87(%rip),%xmm1
divsd  %xmm0,%xmm3
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm5
jae    12cc <main+0x18c>
movapd %xmm5,%xmm0
movsd  %xmm3,0x20(%rsp)
movapd %xmm1,0x10(%rsp)
call   1060 <sqrt@plt>
movapd 0x10(%rsp),%xmm1
movsd  0x20(%rsp),%xmm3
movapd %xmm0,%xmm2
subsd  %xmm2,%xmm1
movsd  (%rsp),%xmm0
addsd  %xmm0,%xmm0
divsd  %xmm0,%xmm1
lea    0xd56(%rip),%rdi
movapd %xmm3,%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [10 x i8] c"%lf%lf%lf\00"
@.str.1 = [7 x i8] c"NEESG\0A\00"
@.str.2 = [5 x i8] c"NRR\0A\00"
@.str.3 = [6 x i8] c"%.2f\0A\00"
@.str.4 = [11 x i8] c"%.2f\0A%.2f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
store i32 0, i32* %1
%8 = call i32 @scanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), double* %2, double* %3, double* %4)
%9 = load double, double* %2
%10 = fcmp oeq double %9, 0.000000e+00
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %71
13: ; preds = %0
%14 = load double, double* %3
%15 = load double, double* %3
%16 = load double, double* %2
%17 = fmul double 4.000000e+00, %16
%18 = load double, double* %4
%19 = fmul double %17, %18
%20 = fneg double %19
%21 = call double @llvm.fmuladd.f64(double %14, double %15, double %20)
store double %21, double* %5
%22 = load double, double* %5
%23 = fcmp ogt double %22, -1.000000e-10
br i1 %23, label %24, label %28
24: ; preds = %13
%25 = load double, double* %5
%26 = fcmp olt double %25, 1.000000e-09
br i1 %26, label %27, label %28
27: ; preds = %24
store double 0.000000e+00, double* %5
br label %28
28: ; preds = %27, %24, %13
%29 = load double, double* %5
%30 = fcmp olt double %29, 0.000000e+00
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %70
33: ; preds = %28
%34 = load double, double* %5
%35 = fcmp oeq double %34, 0.000000e+00
br i1 %35, label %36, label %49
36: ; preds = %33
%37 = load double, double* %3
%38 = fneg double %37
%39 = load double, double* %2
%40 = fmul double 2.000000e+00, %39
%41 = fdiv double %38, %40
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), double %41)
%43 = load double, double* %3
%44 = fneg double %43
%45 = load double, double* %2
%46 = fmul double 2.000000e+00, %45
%47 = fdiv double %44, %46
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), double %47)
br label %69
49: ; preds = %33
%50 = load double, double* %3
%51 = fneg double %50
%52 = load double, double* %5
%53 = call double @sqrt(double %52)
%54 = fadd double %51, %53
%55 = load double, double* %2
%56 = fmul double 2.000000e+00, %55
%57 = fdiv double %54, %56
store double %57, double* %6
%58 = load double, double* %3
%59 = fneg double %58
%60 = load double, double* %5
%61 = call double @sqrt(double %60)
%62 = fsub double %59, %61
%63 = load double, double* %2
%64 = fmul double 2.000000e+00, %63
%65 = fdiv double %62, %64
store double %65, double* %7
%66 = load double, double* %6
%67 = load double, double* %7
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), double %66, double %67)
br label %69
69: ; preds = %49, %36
br label %70
70: ; preds = %69, %31
br label %71
71: ; preds = %70, %11
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"%lf%lf%lf\00"
@.str.3 = [6 x i8] c"%.2f\0A\00"
@.str.4 = [11 x i8] c"%.2f\0A%.2f\0A\00"
@str = [4 x i8] c"NRR\00"
@str.5 = [6 x i8] c"NEESG\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = bitcast double* %1 to i8*
%5 = bitcast double* %2 to i8*
%6 = bitcast double* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), double* %1, double* %2, double* %3)
%8 = load double, double* %1
%9 = fcmp oeq double %8, 0.000000e+00
br i1 %9, label %10, label %12
10: ; preds = %0
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str.5, i64 0, i64 0))
br label %52
12: ; preds = %0
%13 = load double, double* %2
%14 = load double, double* %3
%15 = fmul double %8, -4.000000e+00
%16 = fmul double %15, %14
%17 = call double @llvm.fmuladd.f64(double %13, double %13, double %16)
%18 = fcmp ogt double %17, -1.000000e-10
%19 = fcmp olt double %17, 1.000000e-09
%20 = and i1 %18, %19
%21 = select i1 %20, double 0.000000e+00, double %17
%22 = fcmp olt double %21, 0.000000e+00
br i1 %22, label %23, label %25
23: ; preds = %12
%24 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str, i64 0, i64 0))
br label %52
25: ; preds = %12
%26 = fcmp oeq double %21, 0.000000e+00
br i1 %26, label %27, label %38
27: ; preds = %25
%28 = fneg double %13
%29 = fmul double %8, 2.000000e+00
%30 = fdiv double %28, %29
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), double %30)
%32 = load double, double* %2
%33 = fneg double %32
%34 = load double, double* %1
%35 = fmul double %34, 2.000000e+00
%36 = fdiv double %33, %35
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), double %36)
br label %52
38: ; preds = %25
%39 = call double @sqrt(double %21)
%40 = fsub double %39, %13
%41 = load double, double* %1
%42 = fmul double %41, 2.000000e+00
%43 = fdiv double %40, %42
%44 = load double, double* %2
%45 = fneg double %44
%46 = call double @sqrt(double %21)
%47 = fsub double %45, %46
%48 = load double, double* %1
%49 = fmul double %48, 2.000000e+00
%50 = fdiv double %47, %49
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), double %43, double %50)
br label %52
52: ; preds = %23, %38, %27, %10
ret i32 0
}