int main() {
  float n;
  scanf("%f", &n);
  float a;
  int k;
  float c = 0;
  for (k = 0; k < (int)n; k++) {
    scanf("%f", &a);
    c = c + (0.01 * a);
  }
  float ans = (c) * (100 / n);
  printf("%f\n", ans);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cvttss2si -0x8(%rbp),%ecx
cmp    %ecx,%eax
jge    11ab <main+0x8b>
lea    0xea9(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe7c(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1150 <main+0x30>
movss  -0x14(%rbp),%xmm0
movss  0xe48(%rip),%xmm1
divss  -0x8(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe3d(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
lea    0xedd(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
movss  0x4(%rsp),%xmm0
cvttss2si %xmm0,%eax
xorps  %xmm2,%xmm2
test   %eax,%eax
jle    11ab <main+0x8b>
lea    0xeb9(%rip),%r14
lea    0xc(%rsp),%rbx
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
movss  %xmm2,0x8(%rsp)
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0xc(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
mulsd  0xe71(%rip),%xmm1
addsd  %xmm0,%xmm1
xorps  %xmm2,%xmm2
cvtsd2ss %xmm1,%xmm2
add    $0x1,%ebp
movss  0x4(%rsp),%xmm0
cvttss2si %xmm0,%eax
cmp    %eax,%ebp
jl     1160 <main+0x40>
movss  0xe55(%rip),%xmm1
divss  %xmm0,%xmm1
mulss  %xmm2,%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
lea    0xe46(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%f\00"
@.str.1 = [4 x i8] c"%f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca i32
%5 = alloca float
%6 = alloca float
store i32 0, i32* %1
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
store float 0.000000e+00, float* %5
store i32 0, i32* %4
br label %8
8: ; preds = %21, %0
%9 = load i32, i32* %4
%10 = load float, float* %2
%11 = fptosi float %10 to i32
%12 = icmp slt i32 %9, %11
br i1 %12, label %13, label %24
13: ; preds = %8
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %3)
%15 = load float, float* %5
%16 = fpext float %15 to double
%17 = load float, float* %3
%18 = fpext float %17 to double
%19 = call double @llvm.fmuladd.f64(double 1.000000e-02, double %18, double %16)
%20 = fptrunc double %19 to float
store float %20, float* %5
br label %21
21: ; preds = %13
%22 = load i32, i32* %4
%23 = add nsw i32 %22, 1
store i32 %23, i32* %4
br label %8
24: ; preds = %8
%25 = load float, float* %5
%26 = load float, float* %2
%27 = fdiv float 1.000000e+02, %26
%28 = fmul float %25, %27
store float %28, float* %6
%29 = load float, float* %6
%30 = fpext float %29 to double
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double %30)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
@.str.1 = [4 x i8] c"%f\0A\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = bitcast float* %1 to i8*
%4 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %1)
%5 = bitcast float* %2 to i8*
%6 = load float, float* %1
%7 = fptosi float %6 to i32
%8 = icmp sgt i32 %7, 0
br i1 %8, label %9, label %22
9: ; preds = %0, %9
%10 = phi i32 [ %18, %9 ], [ 0, %0 ]
%11 = phi float [ %17, %9 ], [ 0.000000e+00, %0 ]
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
%13 = fpext float %11 to double
%14 = load float, float* %2
%15 = fpext float %14 to double
%16 = call double @llvm.fmuladd.f64(double %15, double 1.000000e-02, double %13)
%17 = fptrunc double %16 to float
%18 = add nuw nsw i32 %10, 1
%19 = load float, float* %1
%20 = fptosi float %19 to i32
%21 = icmp slt i32 %18, %20
br i1 %21, label %9, label %22
22: ; preds = %9, %0
%23 = phi float [ 0.000000e+00, %0 ], [ %17, %9 ]
%24 = phi float [ %6, %0 ], [ %19, %9 ]
%25 = fdiv float 1.000000e+02, %24
%26 = fmul float %23, %25
%27 = fpext float %26 to double
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double %27)
ret i32 0
}