#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 *, float);
scalar_t__ scanf(char *, float *);
int main() {
  float k[64], t, y;
  int i, n, h, m;
  y = 0;
  h = 0;
  for (i = 0; scanf("%f", &t) != 0; i++) {
    for (m = 0; m < 64; m++) {
      if (k[m] == t) {
        n = 1;
      }
    }
    if (n == 0) {
      k[h] = t;
      h++;
    }
    printf("%d\n", h);
  }
  while (i < h) {
    do {
      k[i] = k[i] - h;
    } while (k[i] >= 0);
    y = y + (k[i] - h);
    y = y / 5;
  }
  printf("%.3f", y);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x118(%rbp)
ff
movl   $0x0,-0x124(%rbp)
movl   $0x0,-0x11c(%rbp)
lea    0xeac(%rip),%rdi
lea    -0x114(%rbp),%rsi
call   1040 <scanf@plt>
cmp    $0x0,%rax
je     1227 <main+0x107>
movl   $0x0,-0x128(%rbp)
cmpl   $0x40,-0x128(%rbp)
jge    11cb <main+0xab>
movslq -0x128(%rbp),%rax
movss  -0x110(%rbp,%rax,4),%xmm0
ff ff
ucomiss -0x114(%rbp),%xmm0
jne    11b2 <main+0x92>
jp     11b2 <main+0x92>
movl   $0x1,-0x120(%rbp)
jmp    11b7 <main+0x97>
mov    -0x128(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x128(%rbp)
jmp    1178 <main+0x58>
cmpl   $0x0,-0x120(%rbp)
jne    11ff <main+0xdf>
movss  -0x114(%rbp),%xmm0
ff
movslq -0x124(%rbp),%rax
movss  %xmm0,-0x110(%rbp,%rax,4)
ff ff
mov    -0x124(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x124(%rbp)
cvtsi2ssl -0x124(%rbp),%xmm0
ff
lea    0xdf9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x11c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x11c(%rbp)
jmp    1151 <main+0x31>
jmp    122c <main+0x10c>
mov    -0x11c(%rbp),%eax
cmp    -0x124(%rbp),%eax
jge    12dc <main+0x1bc>
jmp    1243 <main+0x123>
movslq -0x11c(%rbp),%rax
movss  -0x110(%rbp,%rax,4),%xmm0
ff ff
cvtsi2ssl -0x124(%rbp),%xmm1
ff
subss  %xmm1,%xmm0
movslq -0x11c(%rbp),%rax
movss  %xmm0,-0x110(%rbp,%rax,4)
ff ff
movslq -0x11c(%rbp),%rax
movss  -0x110(%rbp,%rax,4),%xmm0
ff ff
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jae    1243 <main+0x123>
movss  -0x118(%rbp),%xmm0
ff
movslq -0x11c(%rbp),%rax
movss  -0x110(%rbp,%rax,4),%xmm1
ff ff
cvtsi2ssl -0x124(%rbp),%xmm2
ff
subss  %xmm2,%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x118(%rbp)
ff
movss  -0x118(%rbp),%xmm0
ff
movss  0xd35(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x118(%rbp)
ff
jmp    122c <main+0x10c>
movss  -0x118(%rbp),%xmm0
ff
lea    0xd20(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
lea    0xed0(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
test   %rax,%rax
je     117b <main+0x5b>
lea    0xebd(%rip),%r14
lea    0xeb3(%rip),%r15
lea    0xc(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xorps  %xmm0,%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
test   %rax,%rax
jne    1160 <main+0x40>
lea    0xe85(%rip),%rdi
xorps  %xmm0,%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%f\00"
@.str.1 = [4 x i8] c"%d\0A\00"
@.str.2 = [5 x i8] c"%.3f\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [64 x float]
%3 = alloca float
%4 = alloca float
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 0, i32* %1
store float 0.000000e+00, float* %4
store i32 0, i32* %7
store i32 0, i32* %5
br label %9
9: ; preds = %42, %0
%10 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %3)
%11 = icmp ne i64 %10, 0
br i1 %11, label %12, label %45
12: ; preds = %9
store i32 0, i32* %8
br label %13
13: ; preds = %25, %12
%14 = load i32, i32* %8
%15 = icmp slt i32 %14, 64
br i1 %15, label %16, label %28
16: ; preds = %13
%17 = load i32, i32* %8
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [64 x float], [64 x float]* %2, i64 0, i64 %18
%20 = load float, float* %19
%21 = load float, float* %3
%22 = fcmp oeq float %20, %21
br i1 %22, label %23, label %24
23: ; preds = %16
store i32 1, i32* %6
br label %24
24: ; preds = %23, %16
br label %25
25: ; preds = %24
%26 = load i32, i32* %8
%27 = add nsw i32 %26, 1
store i32 %27, i32* %8
br label %13
28: ; preds = %13
%29 = load i32, i32* %6
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %38
31: ; preds = %28
%32 = load float, float* %3
%33 = load i32, i32* %7
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [64 x float], [64 x float]* %2, i64 0, i64 %34
store float %32, float* %35
%36 = load i32, i32* %7
%37 = add nsw i32 %36, 1
store i32 %37, i32* %7
br label %38
38: ; preds = %31, %28
%39 = load i32, i32* %7
%40 = sitofp i32 %39 to float
%41 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float %40)
br label %42
42: ; preds = %38
%43 = load i32, i32* %5
%44 = add nsw i32 %43, 1
store i32 %44, i32* %5
br label %9
45: ; preds = %9
br label %46
46: ; preds = %68, %45
%47 = load i32, i32* %5
%48 = load i32, i32* %7
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %80
50: ; preds = %46
br label %51
51: ; preds = %62, %50
%52 = load i32, i32* %5
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [64 x float], [64 x float]* %2, i64 0, i64 %53
%55 = load float, float* %54
%56 = load i32, i32* %7
%57 = sitofp i32 %56 to float
%58 = fsub float %55, %57
%59 = load i32, i32* %5
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [64 x float], [64 x float]* %2, i64 0, i64 %60
store float %58, float* %61
br label %62
62: ; preds = %51
%63 = load i32, i32* %5
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [64 x float], [64 x float]* %2, i64 0, i64 %64
%66 = load float, float* %65
%67 = fcmp oge float %66, 0.000000e+00
br i1 %67, label %51, label %68
68: ; preds = %62
%69 = load float, float* %4
%70 = load i32, i32* %5
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [64 x float], [64 x float]* %2, i64 0, i64 %71
%73 = load float, float* %72
%74 = load i32, i32* %7
%75 = sitofp i32 %74 to float
%76 = fsub float %73, %75
%77 = fadd float %69, %76
store float %77, float* %4
%78 = load float, float* %4
%79 = fdiv float %78, 5.000000e+00
store float %79, float* %4
br label %46
80: ; preds = %46
%81 = load float, float* %4
%82 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), float %81)
%83 = load i32, i32* %1
ret i32 %83
}

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
@.str.1 = [4 x i8] c"%d\0A\00"
@.str.2 = [5 x i8] c"%.3f\00"
define i32 @main() {
%1 = alloca float
%2 = bitcast float* %1 to i8*
%3 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %1)
%4 = icmp eq i64 %3, 0
br i1 %4, label %9, label %5
5: ; preds = %0, %5
%6 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float 0.000000e+00)
%7 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %1)
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %5
9: ; preds = %5, %0
%10 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), float 0.000000e+00)
ret i32 0
}