program main
  implicit none
  
  integer :: n, a(100) = 0,i,j,c=0,chk
  read(*,*)n
  do i = 1, n
    read(*,*)a(i)
    chk = 0
    do j = 1, i-1
      if (a(j) == a(i)) then
        chk = 1
      end if
    end do
    if (chk == 0) then
      c = c + 1
    end if
  end do
  write(*,'(i0)')c
end program main
    
; ModuleID = 'FIRModule'
source_filename = "FIRModule"
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"

@_QFEa = internal global [100 x i32] zeroinitializer
@_QFEc = internal unnamed_addr global i32 0
@_QQcl.c0e704402c8e62a7075bc4796bd7f57a = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_6434/source.f\00"
@_QQcl.28693029 = linkonce constant [4 x i8] c"(i0)"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca i32, align 4
  %2 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.c0e704402c8e62a7075bc4796bd7f57a, i32 5)
  %3 = call i1 @_FortranAioInputInteger(ptr %2, ptr nonnull %1, i32 4)
  %4 = call i32 @_FortranAioEndIoStatement(ptr %2)
  %5 = load i32, ptr %1, align 4, !tbaa !3
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph11.preheader, label %._crit_edge12

.lr.ph11.preheader:                               ; preds = %0
  %7 = zext i32 %5 to i64
  br label %.lr.ph11

.lr.ph11:                                         ; preds = %.lr.ph11.preheader, %29
  %indvar = phi i64 [ 0, %.lr.ph11.preheader ], [ %indvar.next, %29 ]
  %indvars.iv14 = phi i64 [ 1, %.lr.ph11.preheader ], [ %indvars.iv.next15, %29 ]
  %8 = call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.c0e704402c8e62a7075bc4796bd7f57a, i32 7)
  %9 = add nsw i64 %indvars.iv14, -1
  %10 = getelementptr [100 x i32], ptr @_QFEa, i64 0, i64 %9
  %11 = call i1 @_FortranAioInputInteger(ptr %8, ptr %10, i32 4)
  %12 = call i32 @_FortranAioEndIoStatement(ptr %8)
  %.not = icmp eq i64 %9, 0
  br i1 %.not, label %._crit_edge.thread, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph11
  %13 = load i32, ptr %10, align 4, !tbaa !3
  %min.iters.check = icmp ult i64 %indvar, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %indvar, -8
  %ind.end = or i64 %n.vec, 1
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %13, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  %broadcast.splatinsert21 = insertelement <4 x i32> poison, i32 %13, i64 0
  %broadcast.splat22 = shufflevector <4 x i32> %broadcast.splatinsert21, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %18, %vector.body ]
  %vec.phi19 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %19, %vector.body ]
  %14 = getelementptr [100 x i32], ptr @_QFEa, i64 0, i64 %index
  %wide.load = load <4 x i32>, ptr %14, align 16, !tbaa !3
  %15 = getelementptr i32, ptr %14, i64 4
  %wide.load20 = load <4 x i32>, ptr %15, align 16, !tbaa !3
  %16 = icmp eq <4 x i32> %wide.load, %broadcast.splat
  %17 = icmp eq <4 x i32> %wide.load20, %broadcast.splat22
  %18 = select <4 x i1> %16, <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32> %vec.phi
  %19 = select <4 x i1> %17, <4 x i32> <i32 1, i32 1, i32 1, i32 1>, <4 x i32> %vec.phi19
  %index.next = add nuw i64 %index, 8
  %20 = icmp eq i64 %index.next, %n.vec
  br i1 %20, label %middle.block, label %vector.body, !llvm.loop !7

middle.block:                                     ; preds = %vector.body
  %rdx.select.cmp.not = icmp ne <4 x i32> %18, zeroinitializer
  %rdx.select.cmp2325 = icmp ne <4 x i32> %19, zeroinitializer
  %rdx.select.cmp23 = select <4 x i1> %rdx.select.cmp.not, <4 x i1> <i1 true, i1 true, i1 true, i1 true>, <4 x i1> %rdx.select.cmp2325
  %21 = bitcast <4 x i1> %rdx.select.cmp23 to i4
  %.not26 = icmp ne i4 %21, 0
  %rdx.select24 = zext i1 %.not26 to i32
  %cmp.n = icmp eq i64 %indvar, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %.lr.ph, %middle.block
  %indvars.iv.ph = phi i64 [ 1, %.lr.ph ], [ %ind.end, %middle.block ]
  %.09.ph = phi i32 [ 0, %.lr.ph ], [ %rdx.select24, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %.09 = phi i32 [ %spec.select, %scalar.ph ], [ %.09.ph, %scalar.ph.preheader ]
  %22 = add nsw i64 %indvars.iv, -1
  %23 = getelementptr [100 x i32], ptr @_QFEa, i64 0, i64 %22
  %24 = load i32, ptr %23, align 4, !tbaa !3
  %25 = icmp eq i32 %24, %13
  %spec.select = select i1 %25, i32 1, i32 %.09
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %indvars.iv14
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !10

._crit_edge:                                      ; preds = %scalar.ph, %middle.block
  %spec.select.lcssa = phi i32 [ %rdx.select24, %middle.block ], [ %spec.select, %scalar.ph ]
  %26 = icmp eq i32 %spec.select.lcssa, 0
  br i1 %26, label %._crit_edge.thread, label %29

._crit_edge.thread:                               ; preds = %.lr.ph11, %._crit_edge
  %27 = load i32, ptr @_QFEc, align 4, !tbaa !3
  %28 = add i32 %27, 1
  store i32 %28, ptr @_QFEc, align 4, !tbaa !3
  br label %29

29:                                               ; preds = %._crit_edge.thread, %._crit_edge
  %indvars.iv.next15 = add nuw nsw i64 %indvars.iv14, 1
  %exitcond17.not = icmp eq i64 %indvars.iv14, %7
  %indvar.next = add i64 %indvar, 1
  br i1 %exitcond17.not, label %._crit_edge12, label %.lr.ph11

._crit_edge12:                                    ; preds = %29, %0
  %30 = call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.28693029, i64 4, ptr null, i32 -1, ptr nonnull @_QQcl.c0e704402c8e62a7075bc4796bd7f57a, i32 18)
  %31 = load i32, ptr @_QFEc, align 4, !tbaa !3
  %32 = call i1 @_FortranAioOutputInteger32(ptr %30, i32 %31)
  %33 = call i32 @_FortranAioEndIoStatement(ptr %30)
  ret void
}

declare ptr @_FortranAioBeginExternalListInput(i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioInputInteger(ptr, ptr, i32) local_unnamed_addr

declare i32 @_FortranAioEndIoStatement(ptr) local_unnamed_addr

declare ptr @_FortranAioBeginExternalFormattedOutput(ptr, i64, ptr, i32, ptr, i32) local_unnamed_addr

declare i1 @_FortranAioOutputInteger32(ptr, i32) local_unnamed_addr

!llvm.module.flags = !{!0, !1, !2}

!0 = !{i32 2, !"Debug Info Version", i32 3}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{!4, !4, i64 0}
!4 = !{!"any data access", !5, i64 0}
!5 = !{!"any access", !6, i64 0}
!6 = !{!"Flang Type TBAA Root"}
!7 = distinct !{!7, !8, !9}
!8 = !{!"llvm.loop.isvectorized", i32 1}
!9 = !{!"llvm.loop.unroll.runtime.disable"}
!10 = distinct !{!10, !9, !8}
