integer::R1(97:122)=-1,R2(97:122)=-1
character(2*10**5) S,T
logical check
read*,S
read*,T

check=.true.
do i=1,len_trim(S)
  if(R1( ichar(S(i:i)) )==-1)then
    R1( ichar(S(i:i)) )=ichar(T(i:i))
  else
    if(R1( ichar(S(i:i)) )/=ichar(T(i:i)))check=.false.
  endif
  if(R2( ichar(T(i:i)) )==-1)then
    R2( ichar(T(i:i)) )=ichar(S(i:i))
  else
    if(R2( ichar(T(i:i)) )/=ichar(S(i:i)))check=.false.
  endif
end do

if(check)then
  print"(A)","Yes"
else
  print"(A)","No"
endif

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"

@_QFEr1 = internal unnamed_addr global [26 x i32] [i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1]
@_QFEr2 = internal unnamed_addr global [26 x i32] [i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1, i32 -1]
@_QFEs = internal global [200000 x i8] undef
@_QFEt = internal global [200000 x i8] undef
@_QQcl.489d88e5daa4d49c50dd1704eac02119 = linkonce constant [73 x i8] c"/home/ubuntu/Downloads/TheStack_IR/Collated/Fortran/Source_5508/source.f\00"
@_QQcl.284129 = linkonce constant [3 x i8] c"(A)"
@_QQcl.596573 = linkonce constant [3 x i8] c"Yes"
@_QQcl.4E6F = linkonce constant [2 x i8] c"No"
@_QQEnvironmentDefaults = local_unnamed_addr constant ptr null

define void @_QQmain() local_unnamed_addr {
  %1 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.489d88e5daa4d49c50dd1704eac02119, i32 4)
  %2 = tail call i1 @_FortranAioInputAscii(ptr %1, ptr nonnull @_QFEs, i64 200000)
  %3 = tail call i32 @_FortranAioEndIoStatement(ptr %1)
  %4 = tail call ptr @_FortranAioBeginExternalListInput(i32 -1, ptr nonnull @_QQcl.489d88e5daa4d49c50dd1704eac02119, i32 5)
  %5 = tail call i1 @_FortranAioInputAscii(ptr %4, ptr nonnull @_QFEt, i64 200000)
  %6 = tail call i32 @_FortranAioEndIoStatement(ptr %4)
  br label %7

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

15:                                               ; preds = %7
  %16 = shl i64 %8, 32
  %sext = add i64 %16, 4294967296
  %17 = ashr exact i64 %sext, 32
  %spec.select20 = select i1 %11, i64 0, i64 %17
  %18 = icmp sgt i64 %spec.select20, 0
  br i1 %18, label %.lr.ph, label %select.unfold._crit_edge.thread

.lr.ph:                                           ; preds = %15, %select.unfold
  %indvars.iv = phi i64 [ %indvars.iv.next, %select.unfold ], [ 1, %15 ]
  %.022 = phi i32 [ %.2, %select.unfold ], [ 1, %15 ]
  %19 = add nsw i64 %indvars.iv, -1
  %20 = getelementptr [200000 x [1 x i8]], ptr @_QFEs, i64 0, i64 %19
  %.unpack = load i8, ptr %20, align 1, !tbaa !3
  %21 = zext i8 %.unpack to i64
  %22 = add nsw i64 %21, -97
  %23 = getelementptr [26 x i32], ptr @_QFEr1, i64 0, i64 %22
  %24 = load i32, ptr %23, align 4, !tbaa !3
  %25 = icmp eq i32 %24, -1
  %26 = getelementptr [200000 x [1 x i8]], ptr @_QFEt, i64 0, i64 %19
  %.unpack18 = load i8, ptr %26, align 1, !tbaa !3
  %27 = zext i8 %.unpack18 to i32
  br i1 %25, label %28, label %29

28:                                               ; preds = %.lr.ph
  store i32 %27, ptr %23, align 4, !tbaa !3
  br label %30

29:                                               ; preds = %.lr.ph
  %.not13 = icmp eq i32 %24, %27
  %spec.select = select i1 %.not13, i32 %.022, i32 0
  br label %30

30:                                               ; preds = %29, %28
  %.1 = phi i32 [ %.022, %28 ], [ %spec.select, %29 ]
  %31 = zext i8 %.unpack18 to i64
  %32 = add nsw i64 %31, -97
  %33 = getelementptr [26 x i32], ptr @_QFEr2, i64 0, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !3
  %35 = icmp eq i32 %34, -1
  %36 = zext i8 %.unpack to i32
  br i1 %35, label %37, label %38

37:                                               ; preds = %30
  store i32 %36, ptr %33, align 4, !tbaa !3
  br label %select.unfold

38:                                               ; preds = %30
  %.not16 = icmp eq i32 %34, %36
  %spec.select19 = select i1 %.not16, i32 %.1, i32 0
  br label %select.unfold

select.unfold:                                    ; preds = %38, %37
  %.2 = phi i32 [ %.1, %37 ], [ %spec.select19, %38 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv, %spec.select20
  br i1 %exitcond.not, label %select.unfold._crit_edge, label %.lr.ph

select.unfold._crit_edge:                         ; preds = %select.unfold
  %.not = icmp eq i32 %.2, 0
  br i1 %.not, label %41, label %select.unfold._crit_edge.thread

select.unfold._crit_edge.thread:                  ; preds = %15, %select.unfold._crit_edge
  %39 = tail call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.489d88e5daa4d49c50dd1704eac02119, i32 22)
  %40 = tail call i1 @_FortranAioOutputAscii(ptr %39, ptr nonnull @_QQcl.596573, i64 3)
  br label %44

41:                                               ; preds = %select.unfold._crit_edge
  %42 = tail call ptr @_FortranAioBeginExternalFormattedOutput(ptr nonnull @_QQcl.284129, i64 3, ptr null, i32 -1, ptr nonnull @_QQcl.489d88e5daa4d49c50dd1704eac02119, i32 24)
  %43 = tail call i1 @_FortranAioOutputAscii(ptr %42, ptr nonnull @_QQcl.4E6F, i64 2)
  br label %44

44:                                               ; preds = %select.unfold._crit_edge.thread, %41
  %.sink = phi ptr [ %39, %select.unfold._crit_edge.thread ], [ %42, %41 ]
  %45 = tail call i32 @_FortranAioEndIoStatement(ptr %.sink)
  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 @_FortranAioBeginExternalFormattedOutput(ptr, i64, ptr, 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"}
