#include<stdio.h>
int main()
{
char a,b;
while(scanf("%c %c",&a,&b)!=EOF)
{if(a=='D')
{if(b=='D')
printf("H\n");
else
printf("D\n");}
if(a=='H')
{if(b=='D')
printf("D\n");
else
printf("H\n");}}
return 0;
}
; ModuleID = '/data/TheStack_IR/OJ_Samples/Collated/ObjectiveC/Source_816/source.m'
source_filename = "/data/TheStack_IR/OJ_Samples/Collated/ObjectiveC/Source_816/source.m"
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"

@.str = private unnamed_addr constant [6 x i8] c"%c %c\00", align 1
@str.4 = private unnamed_addr constant [2 x i8] c"H\00", align 1
@str.5 = private unnamed_addr constant [2 x i8] c"D\00", align 1

; Function Attrs: nofree nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #0 {
entry:
  %a = alloca i8, align 1
  %b = alloca i8, align 1
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %a) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %b) #4
  %call26 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b)
  %cmp.not27 = icmp eq i32 %call26, -1
  br i1 %cmp.not27, label %while.end, label %while.body

while.body:                                       ; preds = %entry, %if.end22
  %0 = load i8, ptr %a, align 1, !tbaa !5
  %cmp1 = icmp eq i8 %0, 68
  br i1 %cmp1, label %if.then, label %if.end9

if.then:                                          ; preds = %while.body
  %1 = load i8, ptr %b, align 1, !tbaa !5
  %cmp4 = icmp eq i8 %1, 68
  %str.3.str = select i1 %cmp4, ptr @str.4, ptr @str.5
  %puts = call i32 @puts(ptr nonnull dereferenceable(1) %str.3.str)
  %.pr = load i8, ptr %a, align 1, !tbaa !5
  br label %if.end9

if.end9:                                          ; preds = %if.then, %while.body
  %2 = phi i8 [ %.pr, %if.then ], [ %0, %while.body ]
  %cmp11 = icmp eq i8 %2, 72
  br i1 %cmp11, label %if.then13, label %if.end22

if.then13:                                        ; preds = %if.end9
  %3 = load i8, ptr %b, align 1, !tbaa !5
  %cmp15 = icmp eq i8 %3, 68
  %str.5.str.4 = select i1 %cmp15, ptr @str.5, ptr @str.4
  %puts25 = call i32 @puts(ptr nonnull dereferenceable(1) %str.5.str.4)
  br label %if.end22

if.end22:                                         ; preds = %if.then13, %if.end9
  %call = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %a, ptr noundef nonnull %b)
  %cmp.not = icmp eq i32 %call, -1
  br i1 %cmp.not, label %while.end, label %while.body

while.end:                                        ; preds = %if.end22, %entry
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %b) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %a) #4
  ret i32 0
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #3

attributes #0 = { nofree nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree nounwind }
attributes #4 = { nounwind }

!llvm.linker.options = !{}
!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"Ubuntu clang version 18.0.0 (++20231007042255+8abb2ace888b-1~exp1~20231007042414.1230)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
