program main
    implicit none
    integer x
    read(*,*) x
    if(x <= 599) then
        write(*,*) 8
    else if(x <= 799) then
        write(*,*) 7
    else if(x <= 999) then
        write(*,*) 6
    else if(x <= 1199) then
        write(*,*) 5
    else if(x <= 1399) then
        write(*,*) 4
    else if(x <= 1599) then
        write(*,*) 3
    else if(x <= 1799) then
        write(*,*) 2
    else if(x <= 1999) then
        write(*,*) 1
    end if
end program

; 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"

@_QQcl.260eff11bda6e3216cd663c0f9dddd64 = linkonce constant [72 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_892/source.f\00"
@_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.260eff11bda6e3216cd663c0f9dddd64, i32 4)
  %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 slt i32 %5, 600
  br i1 %6, label %7, label %10

7:                                                ; preds = %0
  %8 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.260eff11bda6e3216cd663c0f9dddd64, i32 6)
  %9 = call i1 @_FortranAioOutputInteger32(ptr %8, i32 8)
  br label %.sink.split

10:                                               ; preds = %0
  %11 = icmp ult i32 %5, 800
  br i1 %11, label %12, label %15

12:                                               ; preds = %10
  %13 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.260eff11bda6e3216cd663c0f9dddd64, i32 8)
  %14 = call i1 @_FortranAioOutputInteger32(ptr %13, i32 7)
  br label %.sink.split

15:                                               ; preds = %10
  %16 = icmp ult i32 %5, 1000
  br i1 %16, label %17, label %20

17:                                               ; preds = %15
  %18 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.260eff11bda6e3216cd663c0f9dddd64, i32 10)
  %19 = call i1 @_FortranAioOutputInteger32(ptr %18, i32 6)
  br label %.sink.split

20:                                               ; preds = %15
  %21 = icmp ult i32 %5, 1200
  br i1 %21, label %22, label %25

22:                                               ; preds = %20
  %23 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.260eff11bda6e3216cd663c0f9dddd64, i32 12)
  %24 = call i1 @_FortranAioOutputInteger32(ptr %23, i32 5)
  br label %.sink.split

25:                                               ; preds = %20
  %26 = icmp ult i32 %5, 1400
  br i1 %26, label %27, label %30

27:                                               ; preds = %25
  %28 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.260eff11bda6e3216cd663c0f9dddd64, i32 14)
  %29 = call i1 @_FortranAioOutputInteger32(ptr %28, i32 4)
  br label %.sink.split

30:                                               ; preds = %25
  %31 = icmp ult i32 %5, 1600
  br i1 %31, label %32, label %35

32:                                               ; preds = %30
  %33 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.260eff11bda6e3216cd663c0f9dddd64, i32 16)
  %34 = call i1 @_FortranAioOutputInteger32(ptr %33, i32 3)
  br label %.sink.split

35:                                               ; preds = %30
  %36 = icmp ult i32 %5, 1800
  br i1 %36, label %37, label %40

37:                                               ; preds = %35
  %38 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.260eff11bda6e3216cd663c0f9dddd64, i32 18)
  %39 = call i1 @_FortranAioOutputInteger32(ptr %38, i32 2)
  br label %.sink.split

40:                                               ; preds = %35
  %41 = icmp ult i32 %5, 2000
  br i1 %41, label %42, label %46

42:                                               ; preds = %40
  %43 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.260eff11bda6e3216cd663c0f9dddd64, i32 20)
  %44 = call i1 @_FortranAioOutputInteger32(ptr %43, i32 1)
  br label %.sink.split

.sink.split:                                      ; preds = %42, %37, %32, %27, %22, %17, %12, %7
  %.sink = phi ptr [ %8, %7 ], [ %13, %12 ], [ %18, %17 ], [ %23, %22 ], [ %28, %27 ], [ %33, %32 ], [ %38, %37 ], [ %43, %42 ]
  %45 = call i32 @_FortranAioEndIoStatement(ptr %.sink)
  br label %46

46:                                               ; preds = %.sink.split, %40
  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 @_FortranAioBeginExternalListOutput(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"}
