#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 */
scalar_t__ EOF;
float fmod(float, int);
int /*<<< orphan*/ printf(char *, float);
scalar_t__ scanf(char *, float *);
int main() {
  float a[64], b, c = 0;
  int i = 0, j, d;
  while ((scanf("%f", &b)) != EOF) {
    d = 1;
    for (j = 0; j < i; j++) {
      if (b == a[j]) {
        d = 0;
        break;
      }
    }
    if (d != 0) {
      a[i] = b;
      i++;
    }
  }
  printf("\n%d", i);
  for (j = 0; j < i; j++) {
    c = c + fmod(a[j], 5);
  }
  printf("\n%.3f", c);
  return 0;
}


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,-0x11c(%rbp)
lea    0xea2(%rip),%rdi
lea    -0x114(%rbp),%rsi
call   1050 <scanf@plt>
mov    0x2e77(%rip),%rcx
cmp    (%rcx),%rax
je     1224 <main+0xf4>
movl   $0x1,-0x124(%rbp)
movl   $0x0,-0x120(%rbp)
mov    -0x120(%rbp),%eax
cmp    -0x11c(%rbp),%eax
jge    11eb <main+0xbb>
movss  -0x114(%rbp),%xmm0
ff
movslq -0x120(%rbp),%rax
ucomiss -0x110(%rbp,%rax,4),%xmm0
ff
jne    11d2 <main+0xa2>
jp     11d2 <main+0xa2>
movl   $0x0,-0x124(%rbp)
jmp    11eb <main+0xbb>
jmp    11d7 <main+0xa7>
mov    -0x120(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x120(%rbp)
jmp    118e <main+0x5e>
cmpl   $0x0,-0x124(%rbp)
je     121f <main+0xef>
movss  -0x114(%rbp),%xmm0
ff
movslq -0x11c(%rbp),%rax
movss  %xmm0,-0x110(%rbp,%rax,4)
ff ff
mov    -0x11c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x11c(%rbp)
jmp    1157 <main+0x27>
cvtsi2ssl -0x11c(%rbp),%xmm0
ff
lea    0xdd0(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x120(%rbp)
mov    -0x120(%rbp),%eax
cmp    -0x11c(%rbp),%eax
jge    12a9 <main+0x179>
movss  -0x118(%rbp),%xmm0
ff
movss  %xmm0,-0x128(%rbp)
ff
movslq -0x120(%rbp),%rax
movss  -0x110(%rbp,%rax,4),%xmm0
ff ff
mov    $0x5,%edi
call   1040 <fmod@plt>
movaps %xmm0,%xmm1
movss  -0x128(%rbp),%xmm0
ff
addss  %xmm1,%xmm0
movss  %xmm0,-0x118(%rbp)
ff
mov    -0x120(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x120(%rbp)
jmp    1242 <main+0x112>
movss  -0x118(%rbp),%xmm0
ff
lea    0xd4f(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x118,%rsp
lea    0xebb(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x2e92(%rip),%r12
cmp    (%r12),%rax
jne    1170 <main+0x40>
lea    0xea0(%rip),%rdi
xorps  %xmm0,%xmm0
call   1030 <printf@plt>
jmp    1227 <main+0xf7>
xor    %ebx,%ebx
lea    0xe87(%rip),%r14
lea    0xc(%rsp),%r15
jmp    119d <main+0x6d>
movslq %ebx,%rax
movss  %xmm0,0x10(%rsp,%rax,4)
add    $0x1,%ebx
mov    %r14,%rdi
mov    %r15,%rsi
call   1050 <scanf@plt>
cmp    (%r12),%rax
je     11c4 <main+0x94>
movss  0xc(%rsp),%xmm0
test   %ebx,%ebx
jle    1180 <main+0x50>
mov    %ebx,%eax
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
ucomiss 0x10(%rsp,%rcx,4),%xmm0
jne    11b9 <main+0x89>
jnp    118c <main+0x5c>
add    $0x1,%rcx
cmp    %rcx,%rax
jne    11b0 <main+0x80>
jmp    1180 <main+0x50>
xorps  %xmm0,%xmm0
cvtsi2ss %ebx,%xmm0
lea    0xe31(%rip),%rdi
call   1030 <printf@plt>
test   %ebx,%ebx
jle    1227 <main+0xf7>
mov    %ebx,%r14d
xorps  %xmm0,%xmm0
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movss  %xmm0,0x8(%rsp)
movss  0x10(%rsp,%rbx,4),%xmm0
mov    $0x5,%edi
call   1040 <fmod@plt>
movss  0x8(%rsp),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x8(%rsp)
movss  0x8(%rsp),%xmm0
add    $0x1,%rbx
cmp    %rbx,%r14
jne    11f0 <main+0xc0>
jmp    122a <main+0xfa>
xorps  %xmm0,%xmm0
lea    0xdd6(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x118,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%f\00"
@EOF = global i64 0
@.str.1 = [4 x i8] c"\0A%d\00"
@.str.2 = [6 x i8] c"\0A%.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
store i32 0, i32* %1
store float 0.000000e+00, float* %4
store i32 0, i32* %5
br label %8
8: ; preds = %39, %0
%9 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %3)
%10 = load i64, i64* @EOF
%11 = icmp ne i64 %9, %10
br i1 %11, label %12, label %40
12: ; preds = %8
store i32 1, i32* %7
store i32 0, i32* %6
br label %13
13: ; preds = %26, %12
%14 = load i32, i32* %6
%15 = load i32, i32* %5
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %29
17: ; preds = %13
%18 = load float, float* %3
%19 = load i32, i32* %6
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [64 x float], [64 x float]* %2, i64 0, i64 %20
%22 = load float, float* %21
%23 = fcmp oeq float %18, %22
br i1 %23, label %24, label %25
24: ; preds = %17
store i32 0, i32* %7
br label %29
25: ; preds = %17
br label %26
26: ; preds = %25
%27 = load i32, i32* %6
%28 = add nsw i32 %27, 1
store i32 %28, i32* %6
br label %13
29: ; preds = %24, %13
%30 = load i32, i32* %7
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %39
32: ; preds = %29
%33 = load float, float* %3
%34 = load i32, i32* %5
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [64 x float], [64 x float]* %2, i64 0, i64 %35
store float %33, float* %36
%37 = load i32, i32* %5
%38 = add nsw i32 %37, 1
store i32 %38, i32* %5
br label %39
39: ; preds = %32, %29
br label %8
40: ; preds = %8
%41 = load i32, i32* %5
%42 = sitofp i32 %41 to float
%43 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float %42)
store i32 0, i32* %6
br label %44
44: ; preds = %56, %40
%45 = load i32, i32* %6
%46 = load i32, i32* %5
%47 = icmp slt i32 %45, %46
br i1 %47, label %48, label %59
48: ; preds = %44
%49 = load float, float* %4
%50 = load i32, i32* %6
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [64 x float], [64 x float]* %2, i64 0, i64 %51
%53 = load float, float* %52
%54 = call float @fmod(float %53, i32 5)
%55 = fadd float %49, %54
store float %55, float* %4
br label %56
56: ; preds = %48
%57 = load i32, i32* %6
%58 = add nsw i32 %57, 1
store i32 %58, i32* %6
br label %44
59: ; preds = %44
%60 = load float, float* %4
%61 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %60)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
@EOF = global i64 0
@.str.1 = [4 x i8] c"\0A%d\00"
@.str.2 = [6 x i8] c"\0A%.3f\00"
define i32 @main() {
%1 = alloca [64 x float]
%2 = alloca float
%3 = bitcast [64 x float]* %1 to i8*
%4 = bitcast float* %2 to i8*
%5 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
%6 = load i64, i64* @EOF
%7 = icmp eq i64 %5, %6
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float 0.000000e+00)
br label %48
10: ; preds = %0, %28
%11 = phi i32 [ %29, %28 ], [ 0, %0 ]
%12 = icmp sgt i32 %11, 0
%13 = load float, float* %2
br i1 %12, label %14, label %24
14: ; preds = %10
%15 = zext i32 %11 to i64
br label %18
16: ; preds = %18
%17 = icmp eq i64 %23, %15
br i1 %17, label %24, label %18
18: ; preds = %14, %16
%19 = phi i64 [ 0, %14 ], [ %23, %16 ]
%20 = getelementptr inbounds [64 x float], [64 x float]* %1, i64 0, i64 %19
%21 = load float, float* %20
%22 = fcmp oeq float %13, %21
%23 = add nuw nsw i64 %19, 1
br i1 %22, label %28, label %16
24: ; preds = %16, %10
%25 = sext i32 %11 to i64
%26 = getelementptr inbounds [64 x float], [64 x float]* %1, i64 0, i64 %25
store float %13, float* %26
%27 = add nsw i32 %11, 1
br label %28
28: ; preds = %18, %24
%29 = phi i32 [ %27, %24 ], [ %11, %18 ]
%30 = call i64 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
%31 = load i64, i64* @EOF
%32 = icmp eq i64 %30, %31
br i1 %32, label %33, label %10
33: ; preds = %28
%34 = sitofp i32 %29 to float
%35 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), float %34)
%36 = icmp sgt i32 %29, 0
br i1 %36, label %37, label %48
37: ; preds = %33
%38 = zext i32 %29 to i64
br label %39
39: ; preds = %37, %39
%40 = phi i64 [ 0, %37 ], [ %46, %39 ]
%41 = phi float [ 0.000000e+00, %37 ], [ %45, %39 ]
%42 = getelementptr inbounds [64 x float], [64 x float]* %1, i64 0, i64 %40
%43 = load float, float* %42
%44 = call float @fmod(float %43, i32 5)
%45 = fadd float %41, %44
%46 = add nuw nsw i64 %40, 1
%47 = icmp eq i64 %46, %38
br i1 %47, label %48, label %39
48: ; preds = %39, %8, %33
%49 = phi float [ 0.000000e+00, %33 ], [ 0.000000e+00, %8 ], [ %45, %39 ]
%50 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), float %49)
ret i32 0
}