program ATCoder
implicit none
character*10::s
integer::i,l,count=0,ans=0
read*,s
s=trim(adjustl(s))
l=len_trim(s)
!print*,l
do i=1,l
   if(s(i:i)=='A'.or.s(i:i)=='T'.or.s(i:i)=='C'.or.s(i:i)=='G')then
      count=count+1
      ans=max(count,ans)
   else
      count=0
   end if
end do

print*,ans
!print*,s

end program ATCoder
; 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"

@_QFEans = internal unnamed_addr global i32 0
@_QFEcount = internal unnamed_addr global i32 0
@_QQcl.1c0e67c637e3f7616b3e0335def730a7 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_4649/source.f\00"
@_QQcl.41 = linkonce constant [1 x i8] c"A"
@_QQcl.54 = linkonce constant [1 x i8] c"T"
@_QQcl.43 = linkonce constant [1 x i8] c"C"
@_QQcl.47 = linkonce constant [1 x i8] c"G"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #0

define void @_QQmain() local_unnamed_addr {
  %1 = alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
  %2 = alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
  %3 = alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
  %4 = alloca { ptr, i64, i32, i8, i8, i8, i8 }, align 8
  %5 = alloca [10 x i8], align 1
  %6 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.1c0e67c637e3f7616b3e0335def730a7, i32 5)
  %7 = call i1 @_FortranAioInputAscii(ptr %6, ptr nonnull %5, i64 10)
  %8 = call i32 @_FortranAioEndIoStatement(ptr %6)
  store ptr %5, ptr %2, align 8, !tbaa !3
  %.fca.1.gep52 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 1
  store i64 10, ptr %.fca.1.gep52, align 8, !tbaa !3
  %.fca.2.gep54 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep54, align 8, !tbaa !3
  %.fca.3.gep56 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 3
  store i8 0, ptr %.fca.3.gep56, align 4, !tbaa !3
  %.fca.4.gep58 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 4
  store i8 40, ptr %.fca.4.gep58, align 1, !tbaa !3
  %.fca.5.gep60 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep60, align 2, !tbaa !3
  %.fca.6.gep62 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %2, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep62, align 1, !tbaa !3
  %.fca.1.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %4, i64 0, i32 1
  %.fca.2.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %4, i64 0, i32 2
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, i8 0, i64 16, i1 false)
  store i32 20180515, ptr %.fca.2.gep, align 8, !tbaa !3
  %.fca.3.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %4, i64 0, i32 3
  store i8 0, ptr %.fca.3.gep, align 4, !tbaa !3
  %.fca.4.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %4, i64 0, i32 4
  store i8 40, ptr %.fca.4.gep, align 1, !tbaa !3
  %.fca.5.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %4, i64 0, i32 5
  store i8 2, ptr %.fca.5.gep, align 2, !tbaa !3
  %.fca.6.gep = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %4, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep, align 1, !tbaa !3
  %9 = call {} @_FortranAAdjustl(ptr nonnull %4, ptr nonnull %2, ptr nonnull @_QQcl.1c0e67c637e3f7616b3e0335def730a7, i32 6)
  %.fca.0.load = load ptr, ptr %4, align 8, !tbaa !3
  %.fca.1.load = load i64, ptr %.fca.1.gep, align 8, !tbaa !3
  store ptr %.fca.0.load, ptr %1, align 8, !tbaa !3
  %.fca.1.gep123 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 1
  store i64 %.fca.1.load, ptr %.fca.1.gep123, align 8, !tbaa !3
  %.fca.2.gep125 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 2
  store i32 20180515, ptr %.fca.2.gep125, align 8, !tbaa !3
  %.fca.3.gep127 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 3
  store i8 0, ptr %.fca.3.gep127, align 4, !tbaa !3
  %.fca.4.gep129 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 4
  store i8 40, ptr %.fca.4.gep129, align 1, !tbaa !3
  %.fca.5.gep131 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 5
  store i8 0, ptr %.fca.5.gep131, align 2, !tbaa !3
  %.fca.6.gep133 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %1, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep133, align 1, !tbaa !3
  %.fca.1.gep17 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 1
  %.fca.2.gep19 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 2
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %3, i8 0, i64 16, i1 false)
  store i32 20180515, ptr %.fca.2.gep19, align 8, !tbaa !3
  %.fca.3.gep21 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 3
  store i8 0, ptr %.fca.3.gep21, align 4, !tbaa !3
  %.fca.4.gep23 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 4
  store i8 40, ptr %.fca.4.gep23, align 1, !tbaa !3
  %.fca.5.gep25 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 5
  store i8 2, ptr %.fca.5.gep25, align 2, !tbaa !3
  %.fca.6.gep27 = getelementptr inbounds { ptr, i64, i32, i8, i8, i8, i8 }, ptr %3, i64 0, i32 6
  store i8 0, ptr %.fca.6.gep27, align 1, !tbaa !3
  %10 = call {} @_FortranATrim(ptr nonnull %3, ptr nonnull %1, ptr nonnull @_QQcl.1c0e67c637e3f7616b3e0335def730a7, i32 6)
  %.fca.0.load29 = load ptr, ptr %3, align 8, !tbaa !3
  %.fca.1.load32 = load i64, ptr %.fca.1.gep17, align 8, !tbaa !3
  %11 = call i64 @llvm.smin.i64(i64 %.fca.1.load32, i64 10)
  call void @llvm.memmove.p0.p0.i64(ptr nonnull align 1 %5, ptr align 1 %.fca.0.load29, i64 %11, i1 false)
  %12 = sub i64 10, %11
  %13 = icmp sgt i64 %12, 0
  br i1 %13, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %0
  %uglygep = getelementptr i8, ptr %5, i64 %11
  call void @llvm.memset.p0.i64(ptr align 1 %uglygep, i8 32, i64 %12, i1 false), !tbaa !7
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.preheader, %0
  call void @free(ptr %.fca.0.load29)
  call void @free(ptr %.fca.0.load)
  br label %14

14:                                               ; preds = %._crit_edge, %14
  %15 = phi i64 [ 9, %._crit_edge ], [ %19, %14 ]
  %16 = getelementptr [10 x [1 x i8]], ptr %5, i64 0, i64 %15
  %17 = load i8, ptr %16, align 1, !tbaa !7
  %18 = icmp eq i8 %17, 32
  %19 = add nsw i64 %15, -1
  %20 = icmp ne i64 %15, 0
  %21 = and i1 %18, %20
  br i1 %21, label %14, label %22

22:                                               ; preds = %14
  %23 = shl i64 %15, 32
  %sext = add i64 %23, 4294967296
  %24 = ashr exact i64 %sext, 32
  %spec.select = select i1 %18, i64 0, i64 %24
  %25 = icmp sgt i64 %spec.select, 0
  br i1 %25, label %.lr.ph145, label %select.unfold._crit_edge

.lr.ph145:                                        ; preds = %22, %select.unfold
  %indvars.iv = phi i64 [ %indvars.iv.next, %select.unfold ], [ 1, %22 ]
  %26 = add nsw i64 %indvars.iv, -1
  %27 = getelementptr [10 x [1 x i8]], ptr %5, i64 0, i64 %26
  %28 = call i32 @_FortranACharacterCompareScalar1(ptr %27, ptr nonnull @_QQcl.41, i64 1, i64 1)
  %29 = icmp eq i32 %28, 0
  %30 = call i32 @_FortranACharacterCompareScalar1(ptr %27, ptr nonnull @_QQcl.54, i64 1, i64 1)
  %31 = icmp eq i32 %30, 0
  %32 = or i1 %29, %31
  %33 = call i32 @_FortranACharacterCompareScalar1(ptr %27, ptr nonnull @_QQcl.43, i64 1, i64 1)
  %34 = icmp eq i32 %33, 0
  %35 = or i1 %32, %34
  %36 = call i32 @_FortranACharacterCompareScalar1(ptr %27, ptr nonnull @_QQcl.47, i64 1, i64 1)
  %37 = icmp eq i32 %36, 0
  %38 = or i1 %35, %37
  br i1 %38, label %39, label %select.unfold

39:                                               ; preds = %.lr.ph145
  %40 = load i32, ptr @_QFEcount, align 4, !tbaa !7
  %41 = add i32 %40, 1
  %42 = load i32, ptr @_QFEans, align 4, !tbaa !7
  %43 = call i32 @llvm.smax.i32(i32 %41, i32 %42)
  store i32 %43, ptr @_QFEans, align 4, !tbaa !7
  br label %select.unfold

select.unfold:                                    ; preds = %.lr.ph145, %39
  %.sink = phi i32 [ %41, %39 ], [ 0, %.lr.ph145 ]
  store i32 %.sink, ptr @_QFEcount, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv, %spec.select
  br i1 %exitcond.not, label %select.unfold._crit_edge, label %.lr.ph145

select.unfold._crit_edge:                         ; preds = %select.unfold, %22
  %44 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.1c0e67c637e3f7616b3e0335def730a7, i32 18)
  %45 = load i32, ptr @_QFEans, align 4, !tbaa !7
  %46 = call i1 @_FortranAioOutputInteger32(ptr %44, i32 %45)
  %47 = call i32 @_FortranAioEndIoStatement(ptr %44)
  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 {} @_FortranAAdjustl(ptr, ptr, ptr, i32) local_unnamed_addr

declare {} @_FortranATrim(ptr, ptr, ptr, i32) local_unnamed_addr

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #1

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

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

declare i1 @_FortranAioOutputInteger32(ptr, i32) local_unnamed_addr

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

attributes #0 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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 = !{!"descriptor member", !5, i64 0}
!5 = !{!"any access", !6, i64 0}
!6 = !{!"Flang Type TBAA Root"}
!7 = !{!8, !8, i64 0}
!8 = !{!"any data access", !5, i64 0}
