Problem:
 Score : 100 points    Problem Statement Two deer, AtCoDeer and TopCoDeer, are playing a game called Honest or Dishonest .
In this game, an honest player always tells the truth, and an dishonest player always tell lies.
You are given two characters a and b as the input. Each of them is either H or D , and carries the following information:  If a = H , AtCoDeer is honest; if a = D , AtCoDeer is dishonest.
If b = H , AtCoDeer is saying that TopCoDeer is honest; if b = D , AtCoDeer is saying that TopCoDeer is dishonest.  Given this information, determine whether TopCoDeer is honest.      Constraints  a = H or a = D .  b = H or b = D .         Input The input is given from Standard Input in the following format:  a  b       Output If TopCoDeer is honest, print H . If he is dishonest, print D .        Sample Input 1 H H      Sample Output 1 H  In this input, AtCoDeer is honest. Hence, as he says, TopCoDeer is honest.       Sample Input 2 D H      Sample Output 2 D  In this input, AtCoDeer is dishonest. Hence, contrary to what he says, TopCoDeer is dishonest.       Sample Input 3 D D      Sample Output 3 H

Solution (Python):
a,b = input().split()
print("H" if (a=="H" and b=="H") or (a=="D" and b=="D") else "D")

Solution (Python):
say = ''.join(input().split())
if say=='HH' or say== 'DD':
    print('H')
else:
    print('D')

Solution (Python):
print("H" if len(set(input().strip().split())) == 1 else "D")

Solution (Python):
a, b = input().strip().split()
print("H" if a == b else "D")

Solution (Python):
a, b = input().split()
print('H' if a == b else 'D')

Solution (Python):
a, b = input().split()

if a == 'H':
    if b == 'H':
        print('H') 
    else:
        print('D')
else:
    if b == 'H':
        print('D')
    else:
        print('H')

Solution (Python):
a,b=input().split()
print("H" if a==b else "D")

Solution (Python):
a,b=input().split()
if a=='H':
    print(b)
else:
    print('HD'.replace(b,''))

Solution (Python):
a,b = input().split()

if (a == 'H' and b == 'H') or (a == 'D' and b == 'D'):
  print('H')
else:
  print('D')

Solution (Python):
a,b = input().split()

if a == b:
  print("H")
else:
  print("D")

Solution (Python):
a, b = input().split()

if a == 'H':
  if b == 'H':
    print('H')
  else:
    print('D')
else:
  if b == 'H':
    print('D')
  else:
    print('H')

Solution (Python):
a, b = input().split()
if a == b:
  print('H')
else:
  print('D')

Solution (Python):
a,b = input().split()
if a == b:
    print('H')
else:
    print('D')

Solution (Python):
a,b = map(str,input().split())

if a == b:
  print("H")
else:
  print("D")

Solution (Python):
a,b = input().split()
if a=='H':
	if b == 'H':
		print('H')
	else:
		print('D')
else:
	if b == 'H':
		print('D')
	else:
		print('H')

Solution (Python):


def main():
    a, b = input().split()
    print("H" if a == b else "D")


if __name__ == "__main__":
    main()

Solution (Python):
a,b=map(str,input().split())
if a=='H': print(b)
elif b=='H': print(a)
else:print('H')

Solution (Python):
a,b=map(str,input().split())

if a=='H':
    a=1
else:
    a=0
if b=='H':
    b=1
else:
    b=0

if a^b==0:
    print('H')
else :
    print('D')

Solution (Python):
a, b = map(str, input().split())

if a == 'H':
    if b == 'H':
        print('H')
    else:
        print('D')
else:
    if b == 'H':
        print('D')
    else:
        print('H')

Solution (Python):
a,b=input().split()
if a==b:
  print("H")
else:
  print("D")

Solution (Python):
a,b = input().split()
dic = {"H":True,"D":False}
a = dic[a]
b = dic[b]
print("D" if a^b else "H")

Solution (Python):
a, b = input().split()

if a == 'H' and b == 'H':
    result = 'H'
    
if a == 'D' and b == 'H':
    result = 'D'
    
if a == 'D' and b == 'D':
    result = 'H'
    
if a == 'H' and b == 'D':
    result = 'D'
    
print(result)

Solution (Python):
a, b = map(str, input().split())
if a == b:
    print('H')
else:
    print('D')

Solution (Python):
a, b = input().split()
if a == "H" and b == "H" or a == "D" and b == "D":
    print("H")
else:
    print("D")

Solution (Python):
a, b = input().split()
hd = "HD"
print(hd[(hd.index(a) + hd.index(b)) % 2])

Solution (Python):
a, b = input().split()
hd = "HD"
if a == "H":
    print(b)
else:
    print(hd[hd.index(b) - 1])

Solution (Python):
a, b = input().split()
if a == "H":
    print(b)
else:
    if b == "H":
        print("D")
    else:
        print("H")

Solution (Python):
a, b = map(str, input().split())

if a == 'H' and  b == 'H':
    print('H')
elif a == 'D' and b == 'D':
    print('H')
else:
    print('D')

Solution (Python):
a, b = input().split()
if a == "H":
  print(b)
else:
  if b == "H":
    print("D")
  else:
    print("H")

Solution (Python):
a, b = input().split()

if a == 'H':
    if b == 'H':
        print('H')
    else:
        print('D')
else:
    if b == 'H':
        print('D')
    else:
        print('H')

Solution (Python):
a,b=input().split(" ")
if a=="H":print(b)
elif b=="D":print("H")
else: print("D")

Solution (Python):
a,b = input().split()
if a == 'H' and b == 'H':
  print('H')
elif a == 'H' and b == 'D':
  print('D')
elif a == 'D' and b == 'H':
  print('D')
else:
  print('H')

Solution (Python):
a,b = input().split()
print('H' if a==b else 'D')

Solution (Python):
a = input().split()
if (a[0] == 'H' and a[1] == 'H') or (a[0] == 'D' and a[1] == 'D'):
    print('H')
else:
    print('D')

Solution (Python):
a,b = input().split()
print("H" if a == b else "D")

Solution (Python):
a, b = input().split()
if a == b:
  print('H')
else:
  print('D')

Solution (Python):
a,b = input().split()

if a == "H":
  print(b)
else:
  if b == "H":
    print("D")
  else:
    print("H")

Solution (Python):
a,b=input().split()
x= a=="H"
y= b=="H"
if x^y:
    print("D")
else:
    print("H")

Solution (Python):
a, b = input().split()
if (a == "H" and b == "H") or (a == "D" and b == "D"):
  print("H")
else:
  print("D")

Solution (Python):
a,b=input().split()
if a=="H" and b=="H":
    print("H")
elif a=="H" and b=="D":
    print("D")
elif a=="D" and b=="H":
    print("D")
else:
    print("H")

Solution (Python):
a,b=input().split()
if a == b:
    print("H")
else:
    print("D")

Solution (Python):
a,_,b = input()
if a=="H"and b=="H":
    print("H")
elif a=="H"and b=="D":
    print("D")
elif a=="D"and b=="H":
    print("D")
else:
    print("H")

Solution (Python):
a, b = input().split()

if a == "D" and b == "D":
    print("H")
elif a == "H" and b == "H":
    print("H")
elif a == "D" or b == "D":
    print("D")

Solution (Python):
a,b=input().split()
if(a=="H" and b=="D"):
	print("D")
elif(a=="D" and b=="H"):
	print("D")
elif(a=="H" and b=="H"):
	print("H")
elif(a=="D" and b=="D"):
	print("H")

Solution (Python):
a,b=input().split()
if(a=="H" and b=="D"):
	print("D")
elif(a=="D" and b=="H"):
	print("D")
elif(a=="H" and b=="H"):
	print("H")
elif(a=="D" and b=="D"):
	print("H")

Solution (Python):
a,b=input().split()
if a==b:print('H')
else:print('D')

Solution (Python):
def main():
    a, b = input().split()

    if a == "H" and b == "H":
        print("H")
    elif a == "D" and b == "D":
        print("H")
    else:
        print("D")


if __name__ == "__main__":
    main()

Solution (Python):

a,b = input().split()
print("H" if (a=="H" and b=="H") or (a=="D" and b=="D") else "D")

Solution (Python):

a,b=input().split()
if (a=='H' and b=='H'):
    print('H')
elif (a=='H' and b=='D'):
    print('D')
elif (a=='D' and b=='H'):
    print('D')
else:
    print('H')

Solution (Python):
a, b = input().split()
if a == 'H':
    print(b)
else:
    if b == 'D':
        print('H')
    else:
        print('D')

Solution (Python):
a, b = input().split()
print('H' if (a == 'H') ^ (b == 'D') else 'D')

Solution (Python):

a, b = input().split()
if (a == 'H' or a == 'D') and (b == 'H' or b == 'D'):
    if a == 'H':
        if b=='H':
            print('H')
        else:
            print('D')
    if a == 'D':
        if b=='H':
            print('D')
        else:
            print('H')

Solution (Python):
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    a, b = input().split()

    if a == "H":
        if b == "H":
            ans = True
        else:
            ans = False
    else:
        if b == "H":
            ans = False
        else:
            ans = True

    if ans:
        print("H")
    else:
        print("D")


if __name__ == '__main__':
    main()

Solution (Python):

def main():
    a, b = input().split()

    if a == 'H':
        if b == 'H':
            print('H')
        else:
            print('D')
    else:
        if b == 'H':
            print('D')
        else:
            print('H')
  
        
if __name__ == '__main__':
    main()

Solution (Python):
a, b = input().split()
if a == "H" and b == "H":
  print("H")
elif a == "D" and b == "D":
  print("H")
else:
  print("D")

Solution (Python):
a, b = map(str, input().split())

if a == 'H':
    if b == 'H':
        ans = 'H'
    else:
        ans = 'D'
else:
    if b == 'H':
        ans = 'D'
    else:
        ans = 'H'

print(ans)

Solution (Python):
deck = ["H","D"]
a,b = input().split()
if deck.index(a) == 0:
  print(b)
elif deck.index(b) == 0:
  print(deck[1])
else:
  print(deck[0])

Solution (Python):
A,B = input().split()

print('H') if (A == 'D' and B == 'D') or (A == 'H' and B == 'H') else print('D')

Solution (Python):
a, b = input().split()
print("DH"[a == b])

Solution (Python):
a, b = input().split()
print(("D", "H")[a == b])

Solution (Python):
a, b = input().split()
print('H' if a==b else 'D')

Solution (Python):
a, b = input().split()

if a == 'H':
    if b == 'H':
        print('H')
    else:
        print('D')
else:
    if b == 'H':
        print('D')
    else:
        print('H')

Solution (Python):
a,b=input().split()
print("H" if a==b else"D")

Solution (Python):



a, b = map(str, input().split())

h = 'H'
d = 'D'

result = h

if a == h:
    if b == d:
        result = d
else:
    if b == h:
        result = d
    else:
        result = h

print(result)

Solution (Python):
print("HD"[len(set(input().split()))-1])

Solution (Python):
a,b=map(str,input().split())
if (a == "H" and b == "H") or (a == "D" and b == "D"):
  print("H")
else:
  print("D")

Solution (Python):
a, b = map(str, input().split())

if (a == "H" and b == "H") or (a == "D" and b == "D"):
    print("H")
else:
    print("D")

Solution (Python):


a, b = map(str, input().split())
if a == b:
    print('H')
else:
    print('D')

Solution (Python):
s={'H':0,'D':1}
t=0
a=input().split()

for i in range(2):
  t+=s[a[i]]
  
if t%2!=0:
  print('D')
  
else:
  print('H')

Solution (Python):
a, b = input().split()

if a == 'H':
    print(b)
elif a == 'D':
    print('HD'[int(not 'HD'.index(b))])

Solution (Python):
a,b=map(str,input().split())
if a=="H" and b=="H":
  print("H")
elif a=="D" and b=="D":
  print("H")
else:
  print("D")

Solution (Python):
a, b = map(str, input().split())

if (a == b == 'H') or (a == b == 'D'):
    print('H')
else:
    print('D')

Solution (Python):

a, b = map(str,input().split())


if a == b:
    TopCoDeer = 'H'
else:
    TopCoDeer = 'D'


print(TopCoDeer)

Solution (Python):

a,b = map(str,input().split())


if a == b:
    print("H")
else:
    print("D")

Solution (Python):
a,b = (input().split())

if (a == 'H' and b == 'H') or (a == 'D' and b == 'D'):
    print('H')

elif (a == 'H' and b == 'D') or (a == 'D' and b == 'H'):
    print('D')

Solution (Python):





a, b = input().split()

if a==b:
    print("H")
else:
    print("D")

Solution (Python):

a,b = map(str, input().split())


if a == 'H' and b == 'H':
    print('H')
elif a == 'D' and b == 'D':
    print('H')
else:
    print('D')

Solution (Python):

a,b = map(str, input().split())

if a == 'H' and b == 'H':
    print('H')
elif a == 'D' and b == 'D':
    print('H')
else:
    print('D')

Solution (Python):
a,b=map(str,input().split())
if a=="H":
  print(b)
  exit()
else:
  if b=="H":
    print("D")
  else:
    print("H")

Solution (Python):
a,b=input().split();print(['HD'.replace(b,''),b][a=='H'])

Solution (Python):
a,b=input().split();print([['H','D'][b=='H'],b][a=='H'])

Solution (Python):
a, b = map(str,input().split())

if a == "H" and b == "H" or a == "D" and b == "D":
    print("H")
else:
    print("D")

Solution (Python):
a, b = map(str, input().split())

if a == 'H' and b == 'H' or a == 'D' and b == 'D':
    print('H')
else:
    print('D')

Solution (Python):





a, b = input().split()

if a == 'H':
    if b == 'H':
        print('H')
    elif b == 'D':
        print('D')
elif a == 'D':
    if b == 'H':
        print('D')
    elif b == 'D':
        print('H')

Solution (Python):
a, b = map(str, input().split())

if a == b:
    print("H")
elif a != b:
    print("D")

Solution (Python):

a, b = input().split()



if a == 'H' and b == 'H':
    print('H')
elif a == 'D' and b == 'H':
    print('D')
elif a == 'H' and b =='D':
    print('D')
elif a == 'D' and b == 'D':
    print('H')

Solution (Python):
a,b = map(str,input().split())
if a == "H":
    print(b)
else:
    if b == "H":
        print("D")
    else:
        print("H")

Solution (Python):

















input_a, input_b = map(str,input().split())

reslut = "ret"



if input_a == "H":  
    if input_b == "H":
        result = "H"
    elif input_b == "D":
        result = "D"
elif input_a == "D":    
    if input_b == "H":
        result = "D"
    elif input_b == "D":
        result = "H"
else:
    reslut = "I don't Know."

print(result)

Solution (Python):

















input_a, input_b = map(str,input().split())

reslut = "ret"



if input_a == "H":  
    if input_b == "H":
        result = "H"
    elif input_b == "D":
        result = "D"
elif input_a == "D":    
    if input_b == "H":
        result = "D"
    elif input_b == "D":
        result = "H"
else:
    reslut = "I don't Know."

print(result)

Solution (Python):




a, b = map(str, input().split())

if a == b:
    print("H")
else:
    print("D")

Solution (Python):




a, b = map(str, input().split())






if a == b:
    print("H")
else:
    print("D")

Solution (Python):
a, b = input().split()

if a == 'H' and b == 'H':
    print('H')
elif a == 'H' and b == 'D':
    print('D')
elif a == 'D' and b == 'H':
    print('D')
else:
    print('H')

Solution (Python):
S =input().replace("H","0")
S = S.replace('D','1')
S_list = list(map(int,S.split()))

if  S_list[0] ^ S_list[1] == 0 :
    result = "H"
else:
    result = "D"
print(result)

Solution (Python):







a, b = map(str, input().split())

if a == 'H' and b == 'H':
    print('H')
elif a == 'H' and b == 'D':
    print('D')
elif a == 'D' and b == 'H':
    print('D')
else:
    print('H')

Solution (Python):
def solve():
    a, b = input().split()
    if a == 'H':
        print(b)
    else:
        if b == 'H':
            print('D')
        else:
            print('H')


if __name__ == "__main__":
    solve()

Solution (Python):
a, b = map(str, input().split())

if a == 'H' and b == 'H':
    print('H')
elif a == 'H' and b == 'D':
    print('D')
elif a == 'D' and b == 'H':
    print('D')
elif a == 'D' and b == 'D':
    print('H')

Solution (Python):
a,b = input().split()
if a == "H" and b == "H":
  print("H")
elif a == "D" and b == "D":
  print("H")
else:
  print("D")

Solution (Python):
a,b=input().split()
if(a =='H' and b=='H') or (a =='D' and b=='D'):
    print('H')
else:
    print('D')

Solution (Python):
a, b = input().split()
print('H' if a == b else 'D')

Solution (Python):
a, b = map(str, input().split())

if a == 'H' and b == 'H':
    print('H')
elif a == 'D' and b == 'D':
    print('H')
else:
    print('D')

Solution (Python):
a, b = input().split()
if a == b:
    print('H')
else:
    print('D')

Solution (Python):
a, b = input().split()
print('H' if a == b else 'D')

Solution (Python):
a,b=input().split()

if a=='H':
  print(b)
else:
  if b=='H':
    print('D')
  else:
    print('H')

Solution (Python):
a,b = input().split()

if a == 'H':
    if b == 'H':
        print('H')
    else:
        print('D')
else:
    if b == 'H':
        print('D')
    else:
        print('H')

Solution (Python):
a,b = input().split()

if (a=="H" and b=="H") or (a=="D" and b=="D"):
    print("H")
else:
    print("D")

Solution (Python):

a,b = input().split()

if a == "H" and b == "H":
    print("H")

elif a == "D" and b == "D":
    print("H")

else:
    print("D")

Solution (Python):

a, b = map(str, input().split())


if a == 'H' and b == 'H':
    print('H')
elif a == 'H' and b == 'D':
    print('D')
elif a == 'D' and b == 'H':
    print('D')
elif a == 'D' and b == 'D':
    print('H')

Solution (Python):
a,b=input().split()
if a == "H":
    if b == "H":
        print("H")
    else:
        print("D")
if a == "D":
    if b == "H":
        print("D")
    else:
        print("H")

Solution (Python):
a,b=input().split()
if a=="H":
  if b=="H":
    print("H")
  else:
    print("D")
else:
  if b=="D":
    print("H")
  else:
    print("D")

Solution (Python):














a, b = map(str, input().split())






if a == "H":
    answer = b
elif b == "H":
    answer = "D"
else:
    answer = "H"


print(answer)

Solution (Python):
a, b = map(str, input().split())

if a == "H":
    print(b)
else:
    if b == "H":
        print('D')
    else:
        print('H')

Solution (Python):
a,b = map(str, input().split())

if a==b:
    print("H")
else:
    print("D")

Solution (Python):
a, b = input().split()
if a == 'H':
    print(b)
elif a == 'D' and b == 'H':
    print('D')
else:
    print('H')

Solution (Python):
a, b = input().split()

if a == "H":
    if b == "H":
        print("H")
    else:
        print("D")
else:
    if b == "H":
        print("D")
    else:
        print("H")

Solution (Python):
a, b = map(str,input(). split())

if a == 'H' and b == 'H':
    print('H')
elif a == 'H' and b == 'D':
    print('D')
elif a == 'D' and b == 'H':
    print('D')
elif a == 'D' and b == 'D':
    print('H')

Solution (Python):
a, b = input().split()
if a == 'H':
    if b == 'H':
        print('H')
    else:
        print('D')
else:
    if b == 'H':
        print('D')
    else:
        print('H')

Solution (Python):
a,b=list(input().split())
if a==b:
  print('H')
else:
  print('D')

Solution (Python):
a, b = map(str, input().split())

if a == 'H' and b == 'H' or a == 'D' and b =='D':
    print('H')
else:
    print('D')

Solution (Python):
a,b=input().split()
if a=="H" and b=="H":
  print("H")
elif a=="D" and b=="D":
  print("H")
else:
  print("D")

Solution (Python):
import sys, re
from math import ceil, floor, sqrt, pi, factorial, gcd
from copy import deepcopy
from collections import Counter, deque
from heapq import heapify, heappop, heappush
from itertools import accumulate, product, combinations, combinations_with_replacement
from bisect import bisect, bisect_left, bisect_right
from functools import reduce
from decimal import Decimal, getcontext

def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]
def lcm(a, b): return a * b // gcd(a, b)
sys.setrecursionlimit(10 ** 6)
INF = float('inf')
MOD = 10 ** 9 + 7
num_list = []
str_list = []

def main():
    a, b = s_map()

    print('H' if a == b else 'D')

if __name__ == '__main__':
    main()

Solution (Python):
a,b = map(str, input().split())
if a == b:
    print('H')
else:
    print('D')

Solution (Python):
a, b = map(str, input().split())
if a == b:
    print("H")
elif a != b:
    print("D")

Solution (Python):
a,b=input().split()
print("H" if a==b else"D")

Solution (Python):
res = {
  ('H', 'H'): 'H',
  ('H', 'D'): 'D',
  ('D', 'H'): 'D',
  ('D', 'D'): 'H'
}
print(res[tuple(input().split())])

Solution (Python):
a,b=map(str,input().split())
if a=="H":
    if b=="H":
        ans="H"
    elif b=="D":
        ans="D"
elif a=="D":
    if b=="H":
        ans="D"
    elif b=="D":
        ans="H"
print(ans)

Solution (Python):
atcodeer, topcodeer = map(str, input().split())

if atcodeer == 'H' and topcodeer == 'H':
    print('H')
elif atcodeer == 'H' and topcodeer == 'D':
    print('D')
elif atcodeer == 'D' and topcodeer == 'H':
    print('D')
elif atcodeer == 'D' and topcodeer == 'D':
    print('H')

Solution (Python):
a, b = map(str, input().split())

if a == 'H' and b == 'H':
    print('H')
elif a == 'H' and b == 'D':
    print('D')
elif a == 'D' and b == 'H':
    print('D')
else:
    print('H')

Solution (Python):

a, b = map(str, input().split())

if a == 'H':
    print(b)
else:
    if b == 'H':
        print('D')
    else:
        print('H')

Solution (Python):
a,b = raw_input().split()
h = {'H':'D', 'D':'H'} if a == 'D' else {'H':'H', 'D':'D'}
print h[b]

Solution (Python):
a,b = raw_input().split()
if a == 'H':
	print b
else:
	h = {'H':'D', 'D':'H'}
	print h[b]

Solution (Python):
a,b = input().split()
print(['D','H'][a==b])

Solution (Python):
a, b = map(str, input().split())
if a == 'H' and b == 'H':
  print('H')
elif a == 'D' and b == 'D':
  print('H')
else:
  print('D')

Solution (Python):
import sys
def input(): return sys.stdin.readline().strip()

def main():
    a, b = input().split()
    if a == b:
        print('H')
    else:
        print('D')


if __name__ == "__main__":
    main()

Solution (Python):
a,b=input().split()
if a=="H":
  if b=="H":
    print("H")
  else:
    print("D")
else:
  if b=="D":
    print("H")
  else:
    print("D")

Solution (Python):
a, b = input().split()

if a == 'H':
    if b == 'H':
        print('H')
    else:
        print('D')
else:
    if b == 'H':
        print('D')
    else:
        print('H')

Solution (Python):
a, b = input().split()

if a == 'H':
    if b == 'H':
        print('H')
    else:
        print('D')
else:
    if b == 'H':
        print('D')
    else:
        print('H')

Solution (Python):
a, b = input().split()
if a == b:
  print("H")
else:
  print("D")

Solution (Python):
a, b = input().split()
if a == "H":
    print(b)
elif b == "D":
    print("H")
else:
    print("D")

Solution (Python):
a, b = input().split()
print('H' if a == b else 'D')

Solution (Python):
a, b = input().split()
if a == "H" and b == "H":
  print("H")
elif a == "D" and b == "H":
  print("D")
elif a == "H" and b == "D":
  print("D")
else:
  print("H")

Solution (Python):
s = input()
if s == "H H" or s == "D D":
    print("H")
else:
    print("D")

Solution (Python):
a,b = input().split()
print("H" if a == b else "D")

Solution (Python):
a,b=input().split()
if a==b:
    print("H")
else:
    print("D")

Solution (Python):
a,b=map(str,input().split())
if a=='H':
    if b=='H':
        print('H')
    else:
        print('D')
else:
    if b=='H':
        print('D')
    else:
        print('H')

Solution (Python):
a, b = input().split()
if a == 'H':
    print(b)
else:
    if b == 'H':
        print('D')
    else:
        print('H')

Solution (Python):
a,b=map(str,input().split())
if a=="H":
    if b=="H":
        print("H")
    else:
        print("D")
else:
    if b=="H":
        print("D")
    else:
        print("H")

Solution (Python):
a,b=input().split(" ")
if str(a) == str(b):
    print("H")
else:
    print("D")

Solution (Python):
a,b = input().split()
if a=='H' and b=='H':
  print('H')
elif a=='H' and b=='D':
  print('D')
elif a=='D' and b=='H':
  print('D')
elif a=='D' and b=='D':
  print('H')

Solution (Python):
a,b = map(str,input().split())
if a == 'H':
    print(b)
else:
    if b == 'H':
        print('D')
    else:
        print('H')

Solution (Python):
a,b = input().split()
c = ['H','D']
c.remove(b)

if a =='H':
    print(b)
else:
    print(*c)

Solution (Python):
a, b = map(str, input().split())
if a == b:
    print('H')
else:
    print('D')

Solution (Python):
import sys

read = sys.stdin.read
readline = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 8)
INF = float('inf')
MOD = 10 ** 9 + 7


def main():
    a, b = input().split()
    if a == b:
        print('H')
    else:
        print('D')


if __name__ == '__main__':
    main()

Solution (Python):
a,b=input().split()
print(["D","H"][a==b])

Solution (Python):
a,b=input().split()
if a==b:print('H')
else:print('D')

Solution (Python):
a, b = input().split()

if a == 'H':
    print(b)
else:
    if b == 'H':
        print('D')
    else:
        print('H')

Solution (Python):
a,b = input().split()
if a =="H":
  print("H") if b =="H" else print("D")
else:
  print("D") if b =="H" else print("H")

Solution (Python):
a, b = input().split()

if a == 'H':
    print(b)
else:
    if b == 'H':
        print('D')
    else:
        print('H')

Solution (Python):
a,b=input().split()
if a=="H":
  if b=="H":
    print("H")
  else:
    print("D")
else:
  if b=="H":
    print("D")
  else:
    print("H")

Solution (Python):









a,b = map(str, input().split())


if ((a=="H" and b =="H") or (a =="D" and b == "D")):
    print("H")
else:
    print("D")

Solution (Python):
a, b= input().split()
if a == 'H':
    print('H') if b == 'H' else print('D')
else:
    print('H') if b == 'D' else print('D')

Solution (Python):
a,b=input().split()
print('DH'[a==b])

Solution (Python):
a,t = map(str, input().split())

print('H' if a==t else 'D')

Solution (Python):
a, b = input().split()
print("H" if (a == "H" and b == "H") or (a == "D" and b == "D") else "D")

Solution (Python):
a, b = input().split()

if a == b:
  ans = 'H'
else:
  ans = 'D'
  
print(ans)

Solution (Python):
s = input()

print("H" if s=="H H" or s=="D D" else "D")

Solution (Python):
a, b = list(map(str, input().split()))
if a == 'H' and b == 'H':
  print('H')
elif a == 'H' and b == 'D':
  print('D')
elif a == 'D' and b == 'H':
  print('D')
else:
  print('H')

Solution (Python):
a, b = map(str,input().split())
if a == 'H' and b == 'H':
    print('H')
elif a == 'H' and b == 'D':
    print('D')
elif a == 'D' and b == 'D':
    print('H')
elif a == 'D' and b == 'H':
    print('D')

Solution (Python):
a,b=input().split()
if a=="H":
    print(b)
else:
    if b=="H":
        print("D")
    else:
        print("H")

Solution (Python):
li=input().split()
if li==["H","H"] or li==["D","D"]:
    print("H")
else:
    print("D")

Solution (Python):
a,b=input().split()
print("H" if a==b else "D")

Solution (Python):
a,b = input().split()
print('H' if a==b else 'D')

Solution (Python):
a,b=input().split()
if a=='H':
    if b=='H':
        print("H")
    elif b=='D':
        print("D")
elif a=='D':
    if b=='H':
        print("D")
    elif b=='D':
        print("H")

Solution (Python):
tmp = input().split(" ")
print("H") if tmp[0] == tmp[1] else print("D")

Solution (Python):
tmp = input().split(" ")
print("H") if tmp[0] == tmp[1] else print("D")

Solution (Python):
a,b = input().split()
if a == 'H' and b == 'H':
    print('H') 
elif a == 'D' and b == 'H':
    print('D') 
elif a == 'D' and b == 'D':
    print('H') 
elif a == 'H' and b == 'D':
    print('D')

Solution (Python):
a, b = [s == "H" for s in input().split()]
f = b if a else not b
print("H" if f else "D")

Solution (Python):
a,b = map(str,input().split())
if a == b:
	print("H")
else:
	print("D")

Solution (Python):
a, b = input().split()
if a == b:
    print("H")
else:
    print("D")

Solution (Python):


def read_int():
    return int(input().strip())


def read_ints():
    return list(map(int, input().strip().split(' ')))


def solve():
    """
    a = H|D atcodeer is honest/dishonest
    b = H|D atcodeer is saying topcodeer is honest/dishonest
    H H H
    D H D
    D D H
    H D D
    """
    l = input()
    return {
        'H H': 'H',
        'D H': 'D',
        'D D': 'H',
        'H D': 'D'
    }[l]


if __name__ == '__main__':
    print(solve())

Solution (Python):
a,b=input().split()
def ch(x):
  return 1 if x=="D" else -1
a=ch(a)
b=ch(b)
print("H" if a*b==1 else "D")

Solution (Python):
a,b = map(str,input().split())
if a == b:
	print("H")
else:
	print("D")

Solution (Python):
a, b = input().split()
if a == 'H':
    print(b)
elif a == 'D' and b == 'H':
    print('D')
elif a == 'D' and b == 'D':
    print('H')

Solution (Python):
a, b = input().split()

if a == 'H' and b == 'H':
  print('H')
elif a == 'D' and b == 'D':
  print('H')
else:
  print('D')

Solution (Python):
a,b=input().split()
print('H' if a==b else 'D' )

Solution (Python):
a, b = input().split()

if a == "H":
    if b == "H":
        print("H")
    else:
        print("D")
else:
    if b == "H":
        print("D")
    else:
        print("H")

Solution (Python):
a, b = input().split()

if a == b:
    print('H')
else:
    print('D')

Solution (Python):


def main():

    a, b = map(str, input().split())

    if a == 'H':
        if b == 'H':
            ans = 'H'
        else:
            ans = 'D'

    else:
        if b == 'H':
            ans = 'D'
        else:
            ans = 'H'

    print(ans)


if __name__ == "__main__":
    main()

Solution (Python):
a,b = input().split()
if a == 'H' and b =='H':
    print('H')
elif a == 'D' and b =='D':
    print('H')
else:
    print('D')

Solution (Python):
a,b=input().split()
x= (a=="H")
y=(b=="H")
if x and y or not x and not y:
  print("H")
else:
  print("D")

Solution (Python):
print({
	'H H': 'H',
  	'H D': 'D',
  	'D H': 'D',
  	'D D': 'H',
}[input()])

Solution (Python):
print('HD'[input()in'H D H'])

Solution (Python):
a,b=input().split()
d={"D":False,"H":True}
print("D" if d[a] ^ d[b] else "H")

Solution (Python):
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    a, b = readline().split()

    if a == b:
        print('H')
    else:
        print('D')

    return


if __name__ == '__main__':
    main()

Solution (Python):
a,b=input().split()
if a==b:
    print("H")
else:
    print("D")

Solution (Python):
a,b = input().split()
if (a=='H' and b=='H') or (a=='D' and b=='D'):
  print('H')
else:
  print('D')

Solution (Python):
a, b = input().split()

if b == 'H':
    if a == 'H':
        print('H')
    else:
        print('D')
elif b == 'D':
    if a == 'H':
        print('D')
    else:
        print('H')

Solution (Python):
a,b=input().split()
if(a==b):print("H")
else:print("D")

Solution (Python):
a, b = input().split()
if a == b:
  print('H')
else:
  print('D')

Solution (Python):
a,b =input().split()

d={'H':0, 'D':1}
print(['H','D'][d[a]^d[b]])

Solution (Python):
a = input().split()
print(a[1] if a[0] == 'H' else ('D' if a[1] == 'H' else 'H'))

Solution (Python):
a,b = input().split()

print('H' if a==b else 'D')

Solution (Python):
bi = {"H": False, "D": True}
a, b = input().split()
print("D" if bi[a] ^ bi[b] else "H")

Solution (Python):
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
INF = 10**9
mod = 10**9+7

a,b = S()
if a == b:
    print('H')
else:
    print('D')

Solution (Python):
a,b=map(str,input().split())
if a == "H":
  print(b)
else:
  if b == "H":
    print("D")
  else:
    print("H")

Solution (Python):
a,b = map(str, input().split())
print("H") if a==b else print("D")

Solution (Python):
import sys
a, b = map(str, input().split())
if (a, b) == ('H', 'H'):
    print('H')
    sys.exit()
if (a, b) == ('D', 'D'):
    print('H')
    sys.exit()
else:
    print('D')

Solution (Python):
a,b=input().split()
if a==b:
  print("H")
else:
  print("D")