PROGRAM ATCODER

implicit none
character(len=10**5) :: s
integer :: s_l

read(*,*) s

s_l = len_trim(s)

if ( s(1:1) ==  s(s_l:s_l) ) then
  if ( mod(s_l,2) == 0 ) then
    write(*,'(a)') 'First'
    stop
  else
    write(*,'(a)') 'Second'
    stop
  end if
else
  if ( mod(s_l,2) == 0 ) then
    write(*,'(a)') 'Second'
    stop
  else
    write(*,'(a)') 'First'
    stop
  end if
end if


contains
!!!!!! サブルーチンは↓
!!!!!!

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"

@_QFEs = internal global [100000 x i8] undef
@_QQcl.78ed25d6d9dc8755c55635738914c077 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_7719/source.f\00"
@_QQcl.286129 = linkonce constant [3 x i8] c"(a)"
@_QQcl.4669727374 = linkonce constant [5 x i8] c"First"
@_QQcl.5365636F6E64 = linkonce constant [6 x i8] c"Second"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

; Function Attrs: noreturn
define void @_QQmain() local_unnamed_addr #0 {
  %1 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.78ed25d6d9dc8755c55635738914c077, i32 7)
  %2 = tail call i1 @_FortranAioInputAscii(ptr %1, ptr nonnull @_QFEs, i64 100000)
  %3 = tail call i32 @_FortranAioEndIoStatement(ptr %1)
  br label %4

4:                                                ; preds = %0, %4
  %5 = phi i64 [ 99999, %0 ], [ %9, %4 ]
  %6 = getelementptr [100000 x [1 x i8]], ptr @_QFEs, i64 0, i64 %5
  %7 = load i8, ptr %6, align 1, !tbaa !3
  %8 = icmp eq i8 %7, 32
  %9 = add nsw i64 %5, -1
  %10 = icmp ne i64 %5, 0
  %11 = and i1 %8, %10
  br i1 %11, label %4, label %12

12:                                               ; preds = %4
  %13 = trunc i64 %5 to i32
  %14 = add i32 %13, 1
  %15 = select i1 %8, i32 0, i32 %14
  %16 = sext i32 %15 to i64
  %17 = add nsw i64 %16, -1
  %18 = getelementptr [100000 x [1 x i8]], ptr @_QFEs, i64 0, i64 %17
  %19 = tail call i32 @_FortranACharacterCompareScalar1(ptr nonnull @_QFEs, ptr %18, i64 1, i64 1)
  %20 = icmp eq i32 %19, 0
  %21 = and i32 %15, 1
  %22 = icmp eq i32 %21, 0
  br i1 %20, label %23, label %34

23:                                               ; preds = %12
  br i1 %22, label %24, label %29

24:                                               ; preds = %23
  %25 = tail call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.286129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.78ed25d6d9dc8755c55635738914c077, i32 13)
  %26 = tail call i1 @_FortranAioOutputAscii(ptr %25, ptr nonnull @_QQcl.4669727374, i64 5)
  %27 = tail call i32 @_FortranAioEndIoStatement(ptr %25)
  %28 = tail call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable

29:                                               ; preds = %23
  %30 = tail call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.286129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.78ed25d6d9dc8755c55635738914c077, i32 16)
  %31 = tail call i1 @_FortranAioOutputAscii(ptr %30, ptr nonnull @_QQcl.5365636F6E64, i64 6)
  %32 = tail call i32 @_FortranAioEndIoStatement(ptr %30)
  %33 = tail call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable

34:                                               ; preds = %12
  br i1 %22, label %35, label %40

35:                                               ; preds = %34
  %36 = tail call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.286129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.78ed25d6d9dc8755c55635738914c077, i32 21)
  %37 = tail call i1 @_FortranAioOutputAscii(ptr %36, ptr nonnull @_QQcl.5365636F6E64, i64 6)
  %38 = tail call i32 @_FortranAioEndIoStatement(ptr %36)
  %39 = tail call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable

40:                                               ; preds = %34
  %41 = tail call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.286129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.78ed25d6d9dc8755c55635738914c077, i32 24)
  %42 = tail call i1 @_FortranAioOutputAscii(ptr %41, ptr nonnull @_QQcl.4669727374, i64 5)
  %43 = tail call i32 @_FortranAioEndIoStatement(ptr %41)
  %44 = tail call {} @_FortranAStopStatement(i32 0, i1 false, i1 false)
  unreachable
}

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 @_FortranAioBeginExternalFormattedOutput(ptr, i64, ptr, i32, ptr, i32) local_unnamed_addr

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

declare {} @_FortranAStopStatement(i32, i1, i1) local_unnamed_addr

attributes #0 = { noreturn }

!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"}
