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`.

Examples

Input

H H


Output

H


Input

D H


Output

D


Input

D D


Output

H
#coding:utf-8
# x=int(raw_input())  # 1 # 一つの数字のみ
x,y=map(str,raw_input().split())  # 2 3  # 二つの数字
# x,z=raw_input()  # 文字列
# print x,y,z
# sum =/ x[0]+y[0]+y[1]
# s = z[0]
if x =="H":
    print y
elif x =="D":
    if y=="D":
        print "H"
    elif y=="H":
        print "D"
elif x =="D":
    if y =="D":
        print"D"
    elif y =="H":
        print"H"
# prin?t x,y
