#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 *);
int main() {
  double sides[3];
  scanf("%lf", &sides[0]);
  scanf("%lf", &sides[1]);
  scanf("%lf", &sides[2]);
  int i, j;
  for (i = 0; i < 3; i += 1) {
    for (j = i + 1; j < 3; j += 1) {
      if (sides[i] > sides[j]) {
        double temp = sides[i];
        sides[i] = sides[j];
        sides[j] = temp;
      }
    }
  }
  double a = sides[0];
  double b = sides[1];
  double c = sides[2];
  if (c == a + b) {
    printf("degenerate\n");
  } else if (c * c > a * a + b * b) {
    printf("obtuse\n");
  } else if (c * c == a * a + b * b) {
    printf("right\n");
  } else {
    printf("acute\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x20(%rbp),%rsi
lea    0xec6(%rip),%rdi
call   1040 <scanf@plt>
lea    -0x20(%rbp),%rsi
add    $0x8,%rsi
lea    0xeb2(%rip),%rdi
call   1040 <scanf@plt>
lea    -0x20(%rbp),%rsi
add    $0x10,%rsi
lea    0xe9e(%rip),%rdi
call   1040 <scanf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x3,-0x24(%rbp)
jge    11fd <main+0xdd>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
cmpl   $0x3,-0x28(%rbp)
jge    11ea <main+0xca>
movslq -0x24(%rbp),%rax
movsd  -0x20(%rbp,%rax,8),%xmm0
movslq -0x28(%rbp),%rax
ucomisd -0x20(%rbp,%rax,8),%xmm0
jbe    11d7 <main+0xb7>
movslq -0x24(%rbp),%rax
movsd  -0x20(%rbp,%rax,8),%xmm0
movsd  %xmm0,-0x30(%rbp)
movslq -0x28(%rbp),%rax
movsd  -0x20(%rbp,%rax,8),%xmm0
movslq -0x24(%rbp),%rax
movsd  %xmm0,-0x20(%rbp,%rax,8)
movsd  -0x30(%rbp),%xmm0
movslq -0x28(%rbp),%rax
movsd  %xmm0,-0x20(%rbp,%rax,8)
jmp    11dc <main+0xbc>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1181 <main+0x61>
jmp    11ef <main+0xcf>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    116e <main+0x4e>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
addsd  -0x40(%rbp),%xmm1
ucomisd %xmm1,%xmm0
jne    124b <main+0x12b>
jp     124b <main+0x12b>
lea    0xdc3(%rip),%rdi
call   1030 <printf@plt>
jmp    12e9 <main+0x1c9>
movsd  -0x48(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm3
movsd  -0x40(%rbp),%xmm2
mulsd  -0x40(%rbp),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jbe    128c <main+0x16c>
lea    0xd8e(%rip),%rdi
call   1030 <printf@plt>
jmp    12e4 <main+0x1c4>
movsd  -0x48(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm3
movsd  -0x40(%rbp),%xmm2
mulsd  -0x40(%rbp),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jne    12d3 <main+0x1b3>
jp     12d3 <main+0x1b3>
lea    0xd4f(%rip),%rdi
call   1030 <printf@plt>
jmp    12df <main+0x1bf>
lea    0xd45(%rip),%rdi
call   1030 <printf@plt>
jmp    12e4 <main+0x1c4>
jmp    12e9 <main+0x1c9>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
lea    0xed4(%rip),%rbx
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
movsd  (%rsp),%xmm1
movsd  0x8(%rsp),%xmm0
ucomisd %xmm0,%xmm1
jbe    116f <main+0x4f>
movsd  %xmm0,(%rsp)
movsd  %xmm1,0x8(%rsp)
jmp    1173 <main+0x53>
movapd %xmm1,%xmm0
movsd  0x10(%rsp),%xmm1
ucomisd %xmm1,%xmm0
jbe    118a <main+0x6a>
movsd  %xmm1,(%rsp)
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
ucomisd %xmm1,%xmm0
jbe    11a8 <main+0x88>
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,0x10(%rsp)
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm2
movsd  0x10(%rsp),%xmm1
movapd %xmm0,%xmm3
addsd  %xmm2,%xmm3
ucomisd %xmm3,%xmm1
jne    11d2 <main+0xb2>
jp     11d2 <main+0xb2>
lea    0xe47(%rip),%rdi
jmp    1207 <main+0xe7>
mulsd  %xmm1,%xmm1
mulsd  %xmm2,%xmm2
mulsd  %xmm0,%xmm0
addsd  %xmm2,%xmm0
ucomisd %xmm0,%xmm1
jbe    11f1 <main+0xd1>
lea    0xe21(%rip),%rdi
jmp    1207 <main+0xe7>
lea    0xe0c(%rip),%rax
lea    0xe0b(%rip),%rdi
cmovne %rax,%rdi
cmovp  %rax,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%lf\00"
@.str.1 = [12 x i8] c"degenerate\0A\00"
@.str.2 = [8 x i8] c"obtuse\0A\00"
@.str.3 = [7 x i8] c"right\0A\00"
@.str.4 = [7 x i8] c"acute\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [3 x double]
%3 = alloca i32
%4 = alloca i32
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store i32 0, i32* %1
%9 = getelementptr inbounds [3 x double], [3 x double]* %2, i64 0, i64 0
%10 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %9)
%11 = getelementptr inbounds [3 x double], [3 x double]* %2, i64 0, i64 1
%12 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %11)
%13 = getelementptr inbounds [3 x double], [3 x double]* %2, i64 0, i64 2
%14 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %13)
store i32 0, i32* %3
br label %15
15: ; preds = %55, %0
%16 = load i32, i32* %3
%17 = icmp slt i32 %16, 3
br i1 %17, label %18, label %58
18: ; preds = %15
%19 = load i32, i32* %3
%20 = add nsw i32 %19, 1
store i32 %20, i32* %4
br label %21
21: ; preds = %51, %18
%22 = load i32, i32* %4
%23 = icmp slt i32 %22, 3
br i1 %23, label %24, label %54
24: ; preds = %21
%25 = load i32, i32* %3
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [3 x double], [3 x double]* %2, i64 0, i64 %26
%28 = load double, double* %27
%29 = load i32, i32* %4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [3 x double], [3 x double]* %2, i64 0, i64 %30
%32 = load double, double* %31
%33 = fcmp ogt double %28, %32
br i1 %33, label %34, label %50
34: ; preds = %24
%35 = load i32, i32* %3
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [3 x double], [3 x double]* %2, i64 0, i64 %36
%38 = load double, double* %37
store double %38, double* %5
%39 = load i32, i32* %4
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [3 x double], [3 x double]* %2, i64 0, i64 %40
%42 = load double, double* %41
%43 = load i32, i32* %3
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [3 x double], [3 x double]* %2, i64 0, i64 %44
store double %42, double* %45
%46 = load double, double* %5
%47 = load i32, i32* %4
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds [3 x double], [3 x double]* %2, i64 0, i64 %48
store double %46, double* %49
br label %50
50: ; preds = %34, %24
br label %51
51: ; preds = %50
%52 = load i32, i32* %4
%53 = add nsw i32 %52, 1
store i32 %53, i32* %4
br label %21
54: ; preds = %21
br label %55
55: ; preds = %54
%56 = load i32, i32* %3
%57 = add nsw i32 %56, 1
store i32 %57, i32* %3
br label %15
58: ; preds = %15
%59 = getelementptr inbounds [3 x double], [3 x double]* %2, i64 0, i64 0
%60 = load double, double* %59
store double %60, double* %6
%61 = getelementptr inbounds [3 x double], [3 x double]* %2, i64 0, i64 1
%62 = load double, double* %61
store double %62, double* %7
%63 = getelementptr inbounds [3 x double], [3 x double]* %2, i64 0, i64 2
%64 = load double, double* %63
store double %64, double* %8
%65 = load double, double* %8
%66 = load double, double* %6
%67 = load double, double* %7
%68 = fadd double %66, %67
%69 = fcmp oeq double %65, %68
br i1 %69, label %70, label %72
70: ; preds = %58
%71 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
br label %102
72: ; preds = %58
%73 = load double, double* %8
%74 = load double, double* %8
%75 = fmul double %73, %74
%76 = load double, double* %6
%77 = load double, double* %6
%78 = load double, double* %7
%79 = load double, double* %7
%80 = fmul double %78, %79
%81 = call double @llvm.fmuladd.f64(double %76, double %77, double %80)
%82 = fcmp ogt double %75, %81
br i1 %82, label %83, label %85
83: ; preds = %72
%84 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %101
85: ; preds = %72
%86 = load double, double* %8
%87 = load double, double* %8
%88 = fmul double %86, %87
%89 = load double, double* %6
%90 = load double, double* %6
%91 = load double, double* %7
%92 = load double, double* %7
%93 = fmul double %91, %92
%94 = call double @llvm.fmuladd.f64(double %89, double %90, double %93)
%95 = fcmp oeq double %88, %94
br i1 %95, label %96, label %98
96: ; preds = %85
%97 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
br label %100
98: ; preds = %85
%99 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
br label %100
100: ; preds = %98, %96
br label %101
101: ; preds = %100, %83
br label %102
102: ; preds = %101, %70
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%lf\00"
@str = [6 x i8] c"acute\00"
@str.5 = [6 x i8] c"right\00"
@str.6 = [7 x i8] c"obtuse\00"
@str.7 = [11 x i8] c"degenerate\00"
define i32 @main() {
%1 = alloca [3 x double]
%2 = bitcast [3 x double]* %1 to i8*
%3 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 0
%4 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %3)
%5 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 1
%6 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %5)
%7 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 2
%8 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double* %7)
%9 = load double, double* %3
%10 = load double, double* %5
%11 = fcmp ogt double %9, %10
br i1 %11, label %23, label %24
12: ; preds = %28, %24
%13 = load double, double* %5
%14 = load double, double* %7
%15 = fcmp ogt double %13, %14
br i1 %15, label %16, label %17
16: ; preds = %12
store double %14, double* %5
store double %13, double* %7
br label %17
17: ; preds = %16, %12
%18 = load double, double* %3
%19 = load double, double* %5
%20 = load double, double* %7
%21 = fadd double %18, %19
%22 = fcmp oeq double %20, %21
br i1 %22, label %37, label %29
23: ; preds = %0
store double %10, double* %3
store double %9, double* %5
br label %24
24: ; preds = %0, %23
%25 = phi double [ %9, %0 ], [ %10, %23 ]
%26 = load double, double* %7
%27 = fcmp ogt double %25, %26
br i1 %27, label %28, label %12
28: ; preds = %24
store double %26, double* %3
store double %25, double* %7
br label %12
29: ; preds = %17
%30 = fmul double %20, %20
%31 = fmul double %19, %19
%32 = call double @llvm.fmuladd.f64(double %18, double %18, double %31)
%33 = fcmp ogt double %30, %32
br i1 %33, label %37, label %34
34: ; preds = %29
%35 = fcmp oeq double %30, %32
%36 = select i1 %35, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0)
br label %37
37: ; preds = %34, %29, %17
%38 = phi i8* [ getelementptr inbounds ([11 x i8], [11 x i8]* @str.7, i64 0, i64 0), %17 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @str.6, i64 0, i64 0), %29 ], [ %36, %34 ]
%39 = call i32 @puts(i8* dereferenceable(1) %38)
ret i32 0
}