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()
if (a=="H" and b=="H") or (a=="D" and b=="D"):
    print("H")
else:
    print("D")

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

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

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

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)
elif a == "D":
    if b == "H":
        print("D")
    else:
        print("H")

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 = list(input().split())
if a==b:
    print('H')
else:
    print('D')

Solution (Python):
a,b = input().split()
if a == "H":
  print(b)
elif 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("H" if b == "H" else "D")
else:
    print("D" if b == "H" else "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 = map(str, 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' 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==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 == '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=='D':
  if b=='H':
    b=a
  else:
    b="H"
print(b)

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()
print(b if a=="H" else ["H","D"][b=="H"])

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):
from sys import stdin

a,b = [x for x in stdin.readline().rstrip().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):

import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

a, d = input()[:-1].split()
print('DH'[a == d])

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 == 'H' and b == 'D' or a == 'D' and 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=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 = [i for i in input().split()]
lies ={'H':'D','D':'H'}
print(b if a == 'H' else lies[b])

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":
    print(b)
elif 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":
  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 == ("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==b):
  print("H")
else:
  print("D")

Solution (Python):
s=input();print("DH"[s[0]==s[2]])

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

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()
if a=='H':
    print(b)
elif b=='H':
    print('D')
else:
    print('H')

Solution (Python):
a, b = map(str, input().split())
if a == "H":
    print(b)
else:
    print("H" if b =="D" else "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()
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" and b == "H") or (a == "D" and b == "D"):
    print("H")
else:
    print("D")

Solution (Python):

import math


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):
lis = [x for x in input()]
a = lis[0]
b = lis[2]
if a == "H" and b == "D":
  print("D")
elif a == "H" and b == "H":
  print("H")
elif a == "D" and 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()

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

Solution (Python):

si = lambda: input()
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))
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()
if a=="H":
  print(b)
else:
  if b=="H":
    print("D")
  else:
    print("H")

Solution (Python):
a,b =[i for i in 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=map(str, input().split()) 
if a==b=='H' or a==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):
def examA():
    a, b = LS()
    if (a=="H" and b=="H") or (a=="D" and b=="D"):
        ans = "H"
    else:
        ans = "D"
    print(ans)

import sys
import copy
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def S(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examA()

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

if a == 'H':
  print(b)
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 == 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):
A,B = map(str,input().split())
print('H' if A==B else 'D')

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

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

Solution (Python):
a, b = map(str, 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')
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') or (a== 'D' and b=='D'):
    print('H')
else:
    print('D')

Solution (Python):
A = input().split()
if A[0] == 'H':
  print(A[1])
elif (A[0] == 'D') and (A[1]== 'D'):
  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 == b:
    print('H')
else:
    print('D')

Solution (Python):
a,b=map(str,input().split())
if a=='H':
    print(b)
elif a!='H' 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 = map(str, input().split())
if a == b:
  print("H")
else:
  print("D")

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

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

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

Solution (Python):
a,b = input().split()
print('H' if a==b=='H' or a==b=='D' 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 == 'D' and b == 'D':
  print("H")
elif a == 'D' and b == 'H':
  print('D')
elif a == 'H' and b == 'H':
  print('H')
else:
  print("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=="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):
f=lambda x:x[0]==x[1]
print('H' if f(list(input().split())) else '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 = map(str,input().split())

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

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

Solution (Python):
a,b=input().split()
if a=='H':
  print(b)
else:
  print('H' if b=='D' 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':
    ans = b
else:
    if b == 'H':
        ans = 'D'
    else:
        ans = 'H'


print(ans)

Solution (Python):
a, b = input().split()
print("H" if a == b 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)
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 = 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()
print("DH"[a==b])

Solution (Python):
S = input().split()
if S[0] == S[1]: 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()
dic = {"H":"D", "D":"H"}
print(b if a=="H" else dic[b])

Solution (Python):
import sys
sys.setrecursionlimit(2147483647)
INF=float("inf")
MOD=10**9+7

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

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=="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()
print("H" if a==b or (a == "D" and b == "D") else "D")

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

Solution (Python):
ab = input().split()

if ab[0] == 'H':
    if ab[1] == 'H':
        print('H')
    else:
        print('D')
else:
    if ab[1] == 'H':
        print('D')
    else:
        print('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):
a,b=input().split()
if a=='H':
  print(b)
else:
  if b=='H':
    print('D')
  else:
    print('H')

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

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

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

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 = map(str, input().split())
if a == b:
    print("H")
elif a != b:
    print("D")

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

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

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

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

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

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

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

print(ans)

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()
print("DH"[a==b])

Solution (Python):
S = list(map(str,input().split()))
a=S[0]
b=S[1]
if a=='H':
    c=1
else:
    c=-1

if b=='H':
    d=1
else:
    d=-1

    
if c*d == 1:
    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 == b :
    print('H')
else :
    print('D')

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

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 == b== 'H' or a==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()
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' 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":
  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 == 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 == 'H':
    print(b)
else:
    print('D' if b == 'H' else 'H')

Solution (Python):
import sys
import math
import random
import threading
import time
from functools import reduce

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":
  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):
print('HD'[list(map(str,input().split())).count('H')%2])

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 = 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 = tuple(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':
    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()
print("DH"[a==b])

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    a, b = list(map(str, str(input().rstrip('\n')).split()))
    print("H" if a == b else "D")


if __name__ == '__main__':
    slove()

Solution (Python):
a, b =input().split()
if a == 'H':
    print(b)
else:
    if 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")
elif (a=="H" and b=="D") or (a == "D" and b == "H"):
    print("D")

Solution (Python):
import sys

input = sys.stdin.readline


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


if __name__ == "__main__":
    main()

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 = 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):
a,b=input().split()
print('H' if a==b else 'D')

Solution (Python):
s=input().split()

if s[0]==s[1]:
  print('H')
else:
  print('D')

Solution (Python):
s=input().split()

if s[0]==s[1]:
  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=input().split(); print("DH"[a==b])

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):
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()
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()
print("H" if (a == "H" and b == "H") or (a == "D" and b == "D") else "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,t = map(str, input().split())
if a == t:
  print("H")
elif a != t:
  print("D")

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

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

Solution (Python):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
def do():
    a,b=STRM()
    if (a=='H' and b=='H') or (a=='D' and b=='D'):
        print('H')
    else:
        print('D')
if __name__ == '__main__':
    do()

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

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

Solution (Python):
ab = set(input().split())
ans = 'H' if len(ab)==1 else 'D'
print(ans)

Solution (Python):


a, b = map(str, 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):
if 1 == len(set(input().split())):
    print('H')
else:
    print('D')

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

Solution (Python):
a,b = map(str, input().split())
if a=='H':
    print(b)
else:
    print('H' if b=='D' 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)
else:
    if b == 'H':
        print('D')
    else:
        print('H')

Solution (Python):
a, b =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 = 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()
is_a_true = a == 'H'
if is_a_true and b == 'H':
    print('H')
elif is_a_true and b == 'D':
    print('D')
elif not is_a_true and b == 'H':
    print('D')
elif not is_a_true and b == 'D':
    print('H')

Solution (Python):
a, b = input().split()
is_a_true = a == 'H'
if is_a_true and b == 'H':
    print('H')
elif is_a_true and b == 'D':
    print('D')
elif not is_a_true and b == 'H':
    print('D')
elif not is_a_true and b == 'D':
    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):
x=list(input().split())
if x[0]==x[1]:
    print('H')
else:
    print('D')

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


if __name__ == "__main__":
    resolve()

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=='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') or (a=='D' and b=='D'):
  print('H')
else:
  print('D')

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()
if A == 'H': print(B)
else: print('H' if B == 'D' 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()
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":
    ans = "H" if b == "H" else "D"
else:
    ans = "H" if b == "D" else "D"
print(ans)

Solution (Python):

a, b = list(input().split())

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

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

Solution (Python):
a, b = input().split()
print("D" if (a=="D") ^ (b=="D") else "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()
if a == "H":
    print("H" if b == "H" else "D")
else:
    print("D" if b == "H" else "H")

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

Solution (Python):
a,b = (str(x) for x in input().split())

if a=="H":
    print(b)
else:
    if b=="H":
        print("D")
    else:
        print("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):
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)
else:
  print("H" if b == "D" else "D")

Solution (Python):
s=input();print("DH"[s[0]==s[2]])

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

if a == ans[0]:
  print(b)
else:
  if b == ans[0]:
    print(ans[1])
  else:
    print(ans[0])

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 = 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 = map(str,input().split())

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

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

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

Solution (Python):
a,_,b=input();print('DH'[a==b])

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

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

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 = map(str,input().split())
print('H') if (a == 'H' and b == 'H') or (a == 'D' and b == 'D') else print('D')

Solution (Python):
a,b = input().split()
print(b if a=='H' else '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()
print("DH"[a==b])

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":
  print(b)
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)
else:
    print('HD'[b not in a])

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

Solution (Python):
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    
a,b=input().split()

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

Solution (Python):
s = input().split()
a, b = s[0], s[1]
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());print('H' if a == b else 'D')

Solution (Python):
a, _, b = input()

print('DH'[a == b])

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

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

Solution (Python):
import sys
import copy
import string
import  math
from _bisect import *
from collections import *
from operator import itemgetter
from math import factorial
"""
from fractions import gcd
def lcm(x, y):
    return (x * y) // gcd(x, y)
"""
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()

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()

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":
	print(b)
elif 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()
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' 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 = (str(i) for i in 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 == "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" and b == "H" or a == "D" and b == "D":
    print("H")
else:
    print("D")

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