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

453a9786c33f147dfc62bf10af2c6d100aee13c6
<mask token>

<mask token>
if a == 'H':
    ans = b
elif a == 'D':
    if b == 'H':
        ans = 'D'
    elif b == 'D':
        ans = 'H'
print(ans)

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