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



Sample input:
H H


Sample output:
H

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
# ABC056a
import sys
input = sys.stdin.readline
sys.setrecursionlimit(10**6)

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
##### 解けた #####

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

if (a=="H" and b=="H") or ((a=="D" and b=="D")): # Aが本当で本当と言った場合か、嘘で嘘と言った場合、Bは本当
    print("H")
elif (a=="H" and b=="D") or (a=="D" and b=="H"): # Bが本当で嘘と言った場合か、嘘で本当と言った場合、Bは嘘
    print("D")

Submission status: Accepted

Solution code:
a,b = [i for i in input().split()]
lies ={'H':'D','D':'H'}
print(b if a == 'H' else lies[b])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#ABC056 A - HonestOrDishonest
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')

Submission status: Accepted

Solution code:
A, B = input().split()
if A == B:
    print("H")
else:
    print("D")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A = input().split()
if A[0] == 'H':
  print(A[1])
elif (A[0] == 'D') and (A[1]== 'D'):
  print('H')
else:
  print('D')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
# A - HonestOrDishonest
a, b = input().split()
print('H' if (a == 'H' and b == 'H') or (a == 'D' and b == 'D') else 'D')

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

Submission status: Accepted

Solution code:
f=lambda x:x[0]==x[1]
print('H' if f(list(input().split())) else 'D')

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

# output
print(ans)

Submission status: Accepted

Solution code:
#n = int(input())
#n,k = map(int,input().split())
#x = list(map(int,input().split()))


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(2147483647)
INF=float("inf")
MOD=10**9+7
# input=lambda :sys.stdin.readline().rstrip()
def resolve():
    a,b=input().split()
    print("H" if a==b else "D")
resolve()

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
print('HD'[list(map(str,input().split())).count('H')%2])

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:

a ,b = input().split()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

a,b = input().split()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#coding:utf-8

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

Solution code:
x=list(input().split())
if x[0]==x[1]:
    print('H')
else:
    print('D')

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ABC056A
a, b = list(input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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])

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
#AtCoDeerくん
#a = 'H'のとき正直者
#a = 'D'のとき嘘つき
#AtCoDeerくん
#b = 'H'のとき、「TopCoDeerくんは正直者だ」と発言する
#b = 'D'のとき、「TopCoDeerくんは嘘つきだ」と発言する

#TopCoDeerくんが正直者かどうか判定してください。
#a = H b = H →H
#a = H b = D →D
#a = D b = H →D
#a = D b = D →H

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = input().split()
if a == 'H':
    print(b)
else:
    print('HD'[b not in a])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

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

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


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

Submission status: Accepted

Solution code:
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')

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(lambda v: v == "H", input().split())
print("H" if not a ^ b else "D")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

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

dic = {'H':True, 'D':False}

if dic[a] != dic[b]:
  print('D')
else:
  print('H')

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = (i for i in input().split())
print("H" if (a == "H" and b == "H") or (a == "D" and b == "D") else "D")

Submission status: Accepted

Solution code:
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')