program main
  implicit none
  character(10) :: s1,s2,s3,s
  character(3) :: ans

  read(*,*) s1,s2,s3

  ans(1:1) = char(ichar(s1(1:1))-32)
  ans(2:2) = char(ichar(s2(1:1))-32)
  ans(3:3) = char(ichar(s3(1:1))-32)

  write(*,*) ans
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"

@_QQcl.84b74bc14c336351f85d0e9b76be0023 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_7355/source.f\00"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca [3 x i8], align 1
  %2 = alloca [10 x i8], align 1
  %3 = alloca [10 x i8], align 1
  %4 = alloca [10 x i8], align 1
  %5 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.84b74bc14c336351f85d0e9b76be0023, i32 6)
  %6 = call i1 @_FortranAioInputAscii(ptr %5, ptr nonnull %2, i64 10)
  %7 = call i1 @_FortranAioInputAscii(ptr %5, ptr nonnull %3, i64 10)
  %8 = call i1 @_FortranAioInputAscii(ptr %5, ptr nonnull %4, i64 10)
  %9 = call i32 @_FortranAioEndIoStatement(ptr %5)
  %.fca.0.load5 = load i8, ptr %2, align 1, !tbaa !3
  %10 = add i8 %.fca.0.load5, -32
  store i8 %10, ptr %1, align 1
  %.fca.0.load2 = load i8, ptr %3, align 1, !tbaa !3
  %11 = add i8 %.fca.0.load2, -32
  %12 = getelementptr inbounds [3 x [1 x i8]], ptr %1, i64 0, i64 1
  store i8 %11, ptr %12, align 1
  %.fca.0.load = load i8, ptr %4, align 1, !tbaa !3
  %13 = add i8 %.fca.0.load, -32
  %14 = getelementptr inbounds [3 x [1 x i8]], ptr %1, i64 0, i64 2
  store i8 %13, ptr %14, align 1
  %15 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.84b74bc14c336351f85d0e9b76be0023, i32 12)
  %16 = call i1 @_FortranAioOutputAscii(ptr %15, ptr nonnull %1, i64 3)
  %17 = call i32 @_FortranAioEndIoStatement(ptr %15)
  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 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"}
