program main
	implicit none
	integer i, j, counter
	character(1) cha(1:26)
	character(100000) S
	read(*, *) S
	cha(1)  = 'a'; cha(2)  = 'b'; cha(3)  = 'c'; cha(4)  = 'd'; cha(5)  = 'e'
	cha(6)  = 'f'; cha(7)  = 'g'; cha(8)  = 'h'; cha(9)  = 'i'; cha(10) = 'j'
	cha(11) = 'k'; cha(12) = 'l'; cha(13) = 'm'; cha(14) = 'n'; cha(15) = 'o'
	cha(16) = 'p'; cha(17) = 'q'; cha(18) = 'r'; cha(19) = 's'; cha(20) = 't'
	cha(21) = 'u'; cha(22) = 'v'; cha(23) = 'w'; cha(24) = 'x'; cha(25) = 'y'
	cha(26) = 'z'
	counter = 0
	do i = 1, 26
		do j = 1, len_trim(S)
			if(S(j:j) == cha(i)) then
				counter = counter + 1
				exit
			end if
		end do
		if(counter /= i) then
			write(*, *) cha(i)
			exit
		else if(counter == 26) then
			write(*, *) 'None'
			exit
		end if
	end do
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"

@_QFEs = internal global [100000 x i8] undef
@_QQcl.3724f3b7b34b9af55ea318fec7c76d64 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_6998/source.f\00"
@_QQcl.61 = linkonce local_unnamed_addr constant [1 x i8] c"a"
@_QQcl.62 = linkonce local_unnamed_addr constant [1 x i8] c"b"
@_QQcl.63 = linkonce local_unnamed_addr constant [1 x i8] c"c"
@_QQcl.64 = linkonce local_unnamed_addr constant [1 x i8] c"d"
@_QQcl.65 = linkonce local_unnamed_addr constant [1 x i8] c"e"
@_QQcl.66 = linkonce local_unnamed_addr constant [1 x i8] c"f"
@_QQcl.67 = linkonce local_unnamed_addr constant [1 x i8] c"g"
@_QQcl.68 = linkonce local_unnamed_addr constant [1 x i8] c"h"
@_QQcl.69 = linkonce local_unnamed_addr constant [1 x i8] c"i"
@_QQcl.6A = linkonce local_unnamed_addr constant [1 x i8] c"j"
@_QQcl.6B = linkonce local_unnamed_addr constant [1 x i8] c"k"
@_QQcl.6C = linkonce local_unnamed_addr constant [1 x i8] c"l"
@_QQcl.6D = linkonce local_unnamed_addr constant [1 x i8] c"m"
@_QQcl.6E = linkonce local_unnamed_addr constant [1 x i8] c"n"
@_QQcl.6F = linkonce local_unnamed_addr constant [1 x i8] c"o"
@_QQcl.70 = linkonce local_unnamed_addr constant [1 x i8] c"p"
@_QQcl.71 = linkonce local_unnamed_addr constant [1 x i8] c"q"
@_QQcl.72 = linkonce local_unnamed_addr constant [1 x i8] c"r"
@_QQcl.73 = linkonce local_unnamed_addr constant [1 x i8] c"s"
@_QQcl.74 = linkonce local_unnamed_addr constant [1 x i8] c"t"
@_QQcl.75 = linkonce local_unnamed_addr constant [1 x i8] c"u"
@_QQcl.76 = linkonce local_unnamed_addr constant [1 x i8] c"v"
@_QQcl.77 = linkonce local_unnamed_addr constant [1 x i8] c"w"
@_QQcl.78 = linkonce local_unnamed_addr constant [1 x i8] c"x"
@_QQcl.79 = linkonce local_unnamed_addr constant [1 x i8] c"y"
@_QQcl.7A = linkonce local_unnamed_addr constant [1 x i8] c"z"
@_QQcl.4E6F6E65 = linkonce constant [4 x i8] c"None"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = alloca [26 x [1 x i8]], align 1
  %2 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.3724f3b7b34b9af55ea318fec7c76d64, i32 6)
  %3 = tail call i1 @_FortranAioInputAscii(ptr %2, ptr nonnull @_QFEs, i64 100000)
  %4 = tail call i32 @_FortranAioEndIoStatement(ptr %2)
  %.unpack = load i8, ptr @_QQcl.61, align 1, !tbaa !3
  store i8 %.unpack, ptr %1, align 1, !tbaa !3
  %5 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 1
  %.unpack68 = load i8, ptr @_QQcl.62, align 1, !tbaa !3
  store i8 %.unpack68, ptr %5, align 1, !tbaa !3
  %6 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 2
  %.unpack69 = load i8, ptr @_QQcl.63, align 1, !tbaa !3
  store i8 %.unpack69, ptr %6, align 1, !tbaa !3
  %7 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 3
  %.unpack70 = load i8, ptr @_QQcl.64, align 1, !tbaa !3
  store i8 %.unpack70, ptr %7, align 1, !tbaa !3
  %8 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 4
  %.unpack71 = load i8, ptr @_QQcl.65, align 1, !tbaa !3
  store i8 %.unpack71, ptr %8, align 1, !tbaa !3
  %9 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 5
  %.unpack72 = load i8, ptr @_QQcl.66, align 1, !tbaa !3
  store i8 %.unpack72, ptr %9, align 1, !tbaa !3
  %10 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 6
  %.unpack73 = load i8, ptr @_QQcl.67, align 1, !tbaa !3
  store i8 %.unpack73, ptr %10, align 1, !tbaa !3
  %11 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 7
  %.unpack74 = load i8, ptr @_QQcl.68, align 1, !tbaa !3
  store i8 %.unpack74, ptr %11, align 1, !tbaa !3
  %12 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 8
  %.unpack75 = load i8, ptr @_QQcl.69, align 1, !tbaa !3
  store i8 %.unpack75, ptr %12, align 1, !tbaa !3
  %13 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 9
  %.unpack76 = load i8, ptr @_QQcl.6A, align 1, !tbaa !3
  store i8 %.unpack76, ptr %13, align 1, !tbaa !3
  %14 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 10
  %.unpack77 = load i8, ptr @_QQcl.6B, align 1, !tbaa !3
  store i8 %.unpack77, ptr %14, align 1, !tbaa !3
  %15 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 11
  %.unpack78 = load i8, ptr @_QQcl.6C, align 1, !tbaa !3
  store i8 %.unpack78, ptr %15, align 1, !tbaa !3
  %16 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 12
  %.unpack79 = load i8, ptr @_QQcl.6D, align 1, !tbaa !3
  store i8 %.unpack79, ptr %16, align 1, !tbaa !3
  %17 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 13
  %.unpack80 = load i8, ptr @_QQcl.6E, align 1, !tbaa !3
  store i8 %.unpack80, ptr %17, align 1, !tbaa !3
  %18 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 14
  %.unpack81 = load i8, ptr @_QQcl.6F, align 1, !tbaa !3
  store i8 %.unpack81, ptr %18, align 1, !tbaa !3
  %19 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 15
  %.unpack82 = load i8, ptr @_QQcl.70, align 1, !tbaa !3
  store i8 %.unpack82, ptr %19, align 1, !tbaa !3
  %20 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 16
  %.unpack83 = load i8, ptr @_QQcl.71, align 1, !tbaa !3
  store i8 %.unpack83, ptr %20, align 1, !tbaa !3
  %21 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 17
  %.unpack84 = load i8, ptr @_QQcl.72, align 1, !tbaa !3
  store i8 %.unpack84, ptr %21, align 1, !tbaa !3
  %22 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 18
  %.unpack85 = load i8, ptr @_QQcl.73, align 1, !tbaa !3
  store i8 %.unpack85, ptr %22, align 1, !tbaa !3
  %23 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 19
  %.unpack86 = load i8, ptr @_QQcl.74, align 1, !tbaa !3
  store i8 %.unpack86, ptr %23, align 1, !tbaa !3
  %24 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 20
  %.unpack87 = load i8, ptr @_QQcl.75, align 1, !tbaa !3
  store i8 %.unpack87, ptr %24, align 1, !tbaa !3
  %25 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 21
  %.unpack88 = load i8, ptr @_QQcl.76, align 1, !tbaa !3
  store i8 %.unpack88, ptr %25, align 1, !tbaa !3
  %26 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 22
  %.unpack89 = load i8, ptr @_QQcl.77, align 1, !tbaa !3
  store i8 %.unpack89, ptr %26, align 1, !tbaa !3
  %27 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 23
  %.unpack90 = load i8, ptr @_QQcl.78, align 1, !tbaa !3
  store i8 %.unpack90, ptr %27, align 1, !tbaa !3
  %28 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 24
  %.unpack91 = load i8, ptr @_QQcl.79, align 1, !tbaa !3
  store i8 %.unpack91, ptr %28, align 1, !tbaa !3
  %29 = getelementptr inbounds [26 x [1 x i8]], ptr %1, i64 0, i64 25
  %.unpack92 = load i8, ptr @_QQcl.7A, align 1, !tbaa !3
  store i8 %.unpack92, ptr %29, align 1, !tbaa !3
  br label %.preheader

.preheader:                                       ; preds = %0, %64
  %indvars.iv106 = phi i64 [ 1, %0 ], [ %indvars.iv.next107, %64 ]
  %.064100 = phi i32 [ 0, %0 ], [ %.1, %64 ]
  br label %30

30:                                               ; preds = %.preheader, %30
  %31 = phi i64 [ 99999, %.preheader ], [ %35, %30 ]
  %32 = getelementptr [100000 x [1 x i8]], ptr @_QFEs, i64 0, i64 %31
  %33 = load i8, ptr %32, align 1, !tbaa !3
  %34 = icmp eq i8 %33, 32
  %35 = add nsw i64 %31, -1
  %36 = icmp ne i64 %31, 0
  %37 = and i1 %34, %36
  br i1 %37, label %30, label %38

38:                                               ; preds = %30
  %39 = trunc i64 %31 to i32
  %40 = add i32 %39, 1
  %spec.select = select i1 %34, i32 0, i32 %40
  %41 = icmp sgt i32 %spec.select, 0
  br i1 %41, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %38
  %42 = add nsw i64 %indvars.iv106, -1
  %43 = getelementptr [26 x [1 x i8]], ptr %1, i64 0, i64 %42
  %44 = add nuw i32 %spec.select, 1
  %wide.trip.count = zext i32 %44 to i64
  br label %45

45:                                               ; preds = %.lr.ph, %select.unfold
  %indvars.iv = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next, %select.unfold ]
  %46 = add nsw i64 %indvars.iv, -1
  %47 = getelementptr [100000 x [1 x i8]], ptr @_QFEs, i64 0, i64 %46
  %48 = call i32 @_FortranACharacterCompareScalar1(ptr %47, ptr %43, i64 1, i64 1)
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %select.unfold

50:                                               ; preds = %45
  %51 = add i32 %.064100, 1
  br label %.loopexit

select.unfold:                                    ; preds = %45
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %45

.loopexit:                                        ; preds = %select.unfold, %38, %50
  %.1 = phi i32 [ %51, %50 ], [ %.064100, %38 ], [ %.064100, %select.unfold ]
  %52 = zext i32 %.1 to i64
  %.not = icmp eq i64 %indvars.iv106, %52
  br i1 %.not, label %59, label %53

53:                                               ; preds = %.loopexit
  %54 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.3724f3b7b34b9af55ea318fec7c76d64, i32 22)
  %sext = shl i64 %indvars.iv106, 32
  %55 = ashr exact i64 %sext, 32
  %56 = add nsw i64 %55, -1
  %57 = getelementptr [26 x [1 x i8]], ptr %1, i64 0, i64 %56
  %58 = call i1 @_FortranAioOutputAscii(ptr %54, ptr %57, i64 1)
  br label %.loopexit93.sink.split

59:                                               ; preds = %.loopexit
  %60 = icmp eq i32 %.1, 26
  br i1 %60, label %61, label %64

61:                                               ; preds = %59
  %62 = call ptr @_FortranAioBeginExternalListOutput(i32 -1, ptr nonnull @_QQcl.3724f3b7b34b9af55ea318fec7c76d64, i32 25)
  %63 = call i1 @_FortranAioOutputAscii(ptr %62, ptr nonnull @_QQcl.4E6F6E65, i64 4)
  br label %.loopexit93.sink.split

64:                                               ; preds = %59
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %exitcond109.not = icmp eq i64 %indvars.iv.next107, 27
  br i1 %exitcond109.not, label %.loopexit93, label %.preheader

.loopexit93.sink.split:                           ; preds = %61, %53
  %.sink = phi ptr [ %54, %53 ], [ %62, %61 ]
  %65 = call i32 @_FortranAioEndIoStatement(ptr %.sink)
  br label %.loopexit93

.loopexit93:                                      ; preds = %64, %.loopexit93.sink.split
  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"}
