program main
character*3 :: n
character*1 :: m
integer :: l
read(*,*)n
l = len_trim(n)
m = n(l:l)

if(m == '3') then
write(*,*)'bon'
else if (m == '0' .or. m == '1' .or. m == '6' .or. m =='8') then
write(*,*)'pon'
else
write(*,*)'hon'
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.a5e500a68648a9f16882582b0a81c968 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_1343/source.f\00"
@_QQcl.33 = linkonce constant [1 x i8] c"3"
@_QQcl.626F6E = linkonce constant [3 x i8] c"bon"
@_QQcl.30 = linkonce constant [1 x i8] c"0"
@_QQcl.31 = linkonce constant [1 x i8] c"1"
@_QQcl.36 = linkonce constant [1 x i8] c"6"
@_QQcl.38 = linkonce constant [1 x i8] c"8"
@_QQcl.706F6E = linkonce constant [3 x i8] c"pon"
@_QQcl.686F6E = linkonce constant [3 x i8] c"hon"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca [1 x i8], align 1
  %2 = alloca [3 x i8], align 1
  %3 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.a5e500a68648a9f16882582b0a81c968, i32 5)
  %4 = call i1 @_FortranAioInputAscii(ptr %3, ptr nonnull %2, i64 3)
  %5 = call i32 @_FortranAioEndIoStatement(ptr %3)
  %6 = getelementptr inbounds [3 x [1 x i8]], ptr %2, i64 0, i64 2
  %7 = load i8, ptr %6, align 1, !tbaa !3
  %8 = icmp eq i8 %7, 32
  br i1 %8, label %9, label %16

9:                                                ; preds = %0
  %10 = getelementptr inbounds [3 x [1 x i8]], ptr %2, i64 0, i64 1
  %11 = load i8, ptr %10, align 1, !tbaa !3
  %12 = icmp eq i8 %11, 32
  br i1 %12, label %13, label %16

13:                                               ; preds = %9
  %14 = load i8, ptr %2, align 1, !tbaa !3
  %15 = icmp eq i8 %14, 32
  br label %16

16:                                               ; preds = %13, %9, %0
  %.lcssa6 = phi i64 [ 2, %0 ], [ 1, %9 ], [ 0, %13 ]
  %.lcssa = phi i1 [ %8, %0 ], [ %12, %9 ], [ %15, %13 ]
  %17 = select i1 %.lcssa, i64 -1, i64 %.lcssa6
  %18 = getelementptr [3 x [1 x i8]], ptr %2, i64 0, i64 %17
  %19 = load i8, ptr %18, align 1
  store i8 %19, ptr %1, align 1
  %20 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %1, ptr nonnull @_QQcl.33, i64 1, i64 1)
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %22, label %25

22:                                               ; preds = %16
  %23 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.a5e500a68648a9f16882582b0a81c968, i32 10)
  %24 = call i1 @_FortranAioOutputAscii(ptr %23, ptr nonnull @_QQcl.626F6E, i64 3)
  br label %43

25:                                               ; preds = %16
  %26 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %1, ptr nonnull @_QQcl.30, i64 1, i64 1)
  %27 = icmp eq i32 %26, 0
  %28 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %1, ptr nonnull @_QQcl.31, i64 1, i64 1)
  %29 = icmp eq i32 %28, 0
  %30 = or i1 %27, %29
  %31 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %1, ptr nonnull @_QQcl.36, i64 1, i64 1)
  %32 = icmp eq i32 %31, 0
  %33 = or i1 %30, %32
  %34 = call i32 @_FortranACharacterCompareScalar1(ptr nonnull %1, ptr nonnull @_QQcl.38, i64 1, i64 1)
  %35 = icmp eq i32 %34, 0
  %36 = or i1 %33, %35
  br i1 %36, label %37, label %40

37:                                               ; preds = %25
  %38 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.a5e500a68648a9f16882582b0a81c968, i32 12)
  %39 = call i1 @_FortranAioOutputAscii(ptr %38, ptr nonnull @_QQcl.706F6E, i64 3)
  br label %43

40:                                               ; preds = %25
  %41 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.a5e500a68648a9f16882582b0a81c968, i32 14)
  %42 = call i1 @_FortranAioOutputAscii(ptr %41, ptr nonnull @_QQcl.686F6E, i64 3)
  br label %43

43:                                               ; preds = %22, %37, %40
  %.sink = phi ptr [ %23, %22 ], [ %38, %37 ], [ %41, %40 ]
  %44 = call i32 @_FortranAioEndIoStatement(ptr %.sink)
  ret void
}

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

declare i1 @_FortranAioInputAscii(ptr, ptr, i64) local_unnamed_addr

declare i32 @_FortranAioEndIoStatement(ptr) local_unnamed_addr

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

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

declare i1 @_FortranAioOutputAscii(ptr, ptr, i64) 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"}
