#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, int);
int scanf(char *, int *);
int main() {
  int v, a[11] = {0};
  while (scanf("%d", &v), v)
    a[v / 10]++;
  for (v = 10; v >= 0; v--)
    if (a[v])
      printf("%d점 이상 : %d명\n", v * 10, a[v]);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x2c,%edx
call   1040 <memset@plt>
lea    0xeaa(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
je     1186 <main+0x56>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cltq
mov    -0x40(%rbp,%rax,4),%ecx
add    $0x1,%ecx
mov    %ecx,-0x40(%rbp,%rax,4)
jmp    114f <main+0x1f>
movl   $0xa,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     11d1 <main+0xa1>
movslq -0x8(%rbp),%rax
cmpl   $0x0,-0x40(%rbp,%rax,4)
je     11be <main+0x8e>
imul   $0xa,-0x8(%rbp),%esi
movslq -0x8(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%edx
lea    0xe4a(%rip),%rdi
call   1030 <printf@plt>
jmp    11c3 <main+0x93>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    118d <main+0x5d>
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x48,%rsp
xorps  %xmm0,%xmm0
movups %xmm0,0x2c(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
lea    0xec0(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
test   %eax,%eax
je     1190 <main+0x70>
lea    0xea7(%rip),%r14
lea    0xc(%rsp),%rbx
xchg   %ax,%ax
cltq
imul   $0x66666667,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x22,%rax
add    %ecx,%eax
cltq
addl   $0x1,0x10(%rsp,%rax,4)
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
test   %eax,%eax
jne    1160 <main+0x40>
movl   $0xa,0xc(%rsp)
mov    $0xa,%eax
lea    0xe5f(%rip),%rbx
jmp    11bd <main+0x9d>
cs nopw 0x0(%rax,%rax,1)
lea    -0x1(%rax),%ecx
mov    %ecx,0xc(%rsp)
test   %eax,%eax
mov    %ecx,%eax
jle    11da <main+0xba>
mov    %eax,%ecx
mov    0x10(%rsp,%rcx,4),%edx
test   %edx,%edx
je     11b0 <main+0x90>
add    %eax,%eax
lea    (%rax,%rax,4),%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0xc(%rsp),%eax
jmp    11b0 <main+0x90>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [22 x i8] c"%d\EC\A0\90 \EC\9D\B4\EC\83\81 : %d\EB\AA\85\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [11 x i32]
store i32 0, i32* %1
%4 = bitcast [11 x i32]* %3 to i8*
br label %5
5: ; preds = %9, %0
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%7 = load i32, i32* %2
%8 = icmp ne i32 %7, 0
br i1 %8, label %9, label %16
9: ; preds = %5
%10 = load i32, i32* %2
%11 = sdiv i32 %10, 10
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [11 x i32], [11 x i32]* %3, i64 0, i64 %12
%14 = load i32, i32* %13
%15 = add nsw i32 %14, 1
store i32 %15, i32* %13
br label %5
16: ; preds = %5
store i32 10, i32* %2
br label %17
17: ; preds = %35, %16
%18 = load i32, i32* %2
%19 = icmp sge i32 %18, 0
br i1 %19, label %20, label %38
20: ; preds = %17
%21 = load i32, i32* %2
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [11 x i32], [11 x i32]* %3, i64 0, i64 %22
%24 = load i32, i32* %23
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %34
26: ; preds = %20
%27 = load i32, i32* %2
%28 = mul nsw i32 %27, 10
%29 = load i32, i32* %2
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [11 x i32], [11 x i32]* %3, i64 0, i64 %30
%32 = load i32, i32* %31
%33 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %28, i32 %32)
br label %34
34: ; preds = %26, %20
br label %35
35: ; preds = %34
%36 = load i32, i32* %2
%37 = add nsw i32 %36, -1
store i32 %37, i32* %2
br label %17
38: ; preds = %17
%39 = load i32, i32* %1
ret i32 %39
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [22 x i8] c"%d\EC\A0\90 \EC\9D\B4\EC\83\81 : %d\EB\AA\85\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [11 x i32]
%3 = bitcast i32* %1 to i8*
%4 = bitcast [11 x i32]* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%6 = load i32, i32* %1
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %9, %0
store i32 10, i32* %1
br label %19
9: ; preds = %0, %9
%10 = phi i32 [ %17, %9 ], [ %6, %0 ]
%11 = sdiv i32 %10, 10
%12 = sext i32 %11 to i64
%13 = getelementptr inbounds [11 x i32], [11 x i32]* %2, i64 0, i64 %12
%14 = load i32, i32* %13
%15 = add nsw i32 %14, 1
store i32 %15, i32* %13
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%17 = load i32, i32* %1
%18 = icmp eq i32 %17, 0
br i1 %18, label %8, label %9
19: ; preds = %8, %29
%20 = phi i32 [ 10, %8 ], [ %31, %29 ]
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds [11 x i32], [11 x i32]* %2, i64 0, i64 %21
%23 = load i32, i32* %22
%24 = icmp eq i32 %23, 0
br i1 %24, label %29, label %25
25: ; preds = %19
%26 = mul nsw i32 %20, 10
%27 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %26, i32 %23)
%28 = load i32, i32* %1
br label %29
29: ; preds = %19, %25
%30 = phi i32 [ %20, %19 ], [ %28, %25 ]
%31 = add nsw i32 %30, -1
store i32 %31, i32* %1
%32 = icmp sgt i32 %30, 0
br i1 %32, label %19, label %33
33: ; preds = %29
ret i32 0
}