#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 *, int *, int *, int *);
int main() {
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  printf((a >= 40 && b >= 40 && c >= 40 && (a + b + c) / 3 >= 60) ? "합격"
                                                                  : "불합격");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1040 <scanf@plt>
xor    %eax,%eax
cmpl   $0x28,-0x8(%rbp)
mov    %al,-0x11(%rbp)
jl     118e <main+0x6e>
xor    %eax,%eax
cmpl   $0x28,-0xc(%rbp)
mov    %al,-0x11(%rbp)
jl     118e <main+0x6e>
xor    %eax,%eax
cmpl   $0x28,-0x10(%rbp)
mov    %al,-0x11(%rbp)
jl     118e <main+0x6e>
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
add    -0x10(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x3c,%eax
setge  %al
mov    %al,-0x11(%rbp)
mov    -0x11(%rbp),%cl
lea    0xe71(%rip),%rdi
lea    0xe6d(%rip),%rax
test   $0x1,%cl
cmovne %rax,%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
call   1040 <scanf@plt>
mov    0x14(%rsp),%eax
mov    0x10(%rsp),%ecx
mov    0xc(%rsp),%edx
lea    (%rcx,%rax,1),%esi
add    %edx,%esi
cmp    $0xb4,%esi
lea    0xeaf(%rip),%rdi
lea    0xea5(%rip),%rsi
cmovl  %rsi,%rdi
cmp    $0x28,%edx
cmovl  %rsi,%rdi
cmp    $0x28,%ecx
cmovl  %rsi,%rdi
cmp    $0x28,%eax
cmovl  %rsi,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%d %d %d\00"
@.str.1 = [7 x i8] c"\ED\95\A9\EA\B2\A9\00"
@.str.2 = [10 x i8] c"\EB\B6\88\ED\95\A9\EA\B2\A9\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %2, i32* %3, i32* %4)
%6 = load i32, i32* %2
%7 = icmp sge i32 %6, 40
br i1 %7, label %8, label %22
8: ; preds = %0
%9 = load i32, i32* %3
%10 = icmp sge i32 %9, 40
br i1 %10, label %11, label %22
11: ; preds = %8
%12 = load i32, i32* %4
%13 = icmp sge i32 %12, 40
br i1 %13, label %14, label %22
14: ; preds = %11
%15 = load i32, i32* %2
%16 = load i32, i32* %3
%17 = add nsw i32 %15, %16
%18 = load i32, i32* %4
%19 = add nsw i32 %17, %18
%20 = sdiv i32 %19, 3
%21 = icmp sge i32 %20, 60
br label %22
22: ; preds = %14, %11, %8, %0
%23 = phi i1 [ false, %11 ], [ false, %8 ], [ false, %0 ], [ %21, %14 ]
%24 = zext i1 %23 to i64
%25 = select i1 %23, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0)
%26 = call i32 @printf(i8* %25)
%27 = load i32, i32* %1
ret i32 %27
}

LLVM IR (-O2):
@.str = [9 x i8] c"%d %d %d\00"
@.str.1 = [7 x i8] c"\ED\95\A9\EA\B2\A9\00"
@.str.2 = [10 x i8] c"\EB\B6\88\ED\95\A9\EA\B2\A9\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%8 = load i32, i32* %1
%9 = icmp sgt i32 %8, 39
%10 = load i32, i32* %2
%11 = icmp sgt i32 %10, 39
%12 = select i1 %9, i1 %11, i1 false
%13 = load i32, i32* %3
%14 = icmp sgt i32 %13, 39
%15 = select i1 %12, i1 %14, i1 false
%16 = add nsw i32 %10, %8
%17 = add nsw i32 %16, %13
%18 = icmp sgt i32 %17, 179
%19 = select i1 %15, i1 %18, i1 false
%20 = select i1 %19, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0)
%21 = call i32 @printf(i8* dereferenceable(1) %20)
ret i32 0
}