integer :: a,b
logical :: flag = .false.

read*,a,b

if( mod(a,3)==0 ) flag = .true.
if( mod(b,3)==0 ) flag = .true.
if( mod(a+b,3)==0 ) flag = .true.

if(flag)then
  print*,'Possible'
else
  print*,'Impossible'
end if
end
; 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"

@_QFEflag = internal unnamed_addr global i1 false
@_QQcl.0abcdf2881a7f80200204b672aa42a4d = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_7104/source.f\00"
@_QQcl.506F737369626C65 = linkonce constant [8 x i8] c"Possible"
@_QQcl.496D706F737369626C65 = linkonce constant [10 x i8] c"Impossible"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.0abcdf2881a7f80200204b672aa42a4d, i32 4)
  %4 = call i1 @_FortranAioInputInteger(ptr %3, ptr nonnull %1, i32 4)
  %5 = call i1 @_FortranAioInputInteger(ptr %3, ptr nonnull %2, i32 4)
  %6 = call i32 @_FortranAioEndIoStatement(ptr %3)
  %7 = load i32, ptr %1, align 4, !tbaa !3
  %8 = srem i32 %7, 3
  %9 = icmp eq i32 %8, 0
  br i1 %9, label %10, label %11

10:                                               ; preds = %0
  store i1 true, ptr @_QFEflag, align 1
  br label %11

11:                                               ; preds = %10, %0
  %12 = load i32, ptr %2, align 4, !tbaa !3
  %13 = srem i32 %12, 3
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %15, label %16

15:                                               ; preds = %11
  store i1 true, ptr @_QFEflag, align 1
  br label %16

16:                                               ; preds = %15, %11
  %17 = add i32 %12, %7
  %18 = srem i32 %17, 3
  %19 = icmp eq i32 %18, 0
  br i1 %19, label %.thread, label %20

.thread:                                          ; preds = %16
  store i1 true, ptr @_QFEflag, align 1
  br label %21

20:                                               ; preds = %16
  %.b.pr = load i1, ptr @_QFEflag, align 1
  br i1 %.b.pr, label %21, label %24

21:                                               ; preds = %.thread, %20
  %22 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.0abcdf2881a7f80200204b672aa42a4d, i32 11)
  %23 = call i1 @_FortranAioOutputAscii(ptr %22, ptr nonnull @_QQcl.506F737369626C65, i64 8)
  br label %27

24:                                               ; preds = %20
  %25 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.0abcdf2881a7f80200204b672aa42a4d, i32 13)
  %26 = call i1 @_FortranAioOutputAscii(ptr %25, ptr nonnull @_QQcl.496D706F737369626C65, i64 10)
  br label %27

27:                                               ; preds = %21, %24
  %.sink = phi ptr [ %22, %21 ], [ %25, %24 ]
  %28 = call i32 @_FortranAioEndIoStatement(ptr %.sink)
  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 @_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"}
