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: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
i = input().split()
a = i[0]
b = i[1]
if a == b:
    if a == "H":
        print("H")
    else:
        print("H")
elif a == "D":
    if b == "H":
        print("D")
    else:
        print("H")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = list(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a, b = map(str, raw_input() .split())
x = 0
y = 0
if a == 'H':
    x += 1
elif b == 'H':
    y += 1

if x == 1 and y == 1:
    print "H"
elif x == 0 and y == 0:
    print "H"
elif x == 1 and y == 0:
    print "D"
elif x == 0 and y == 1:
    print "D"

Submission status: Wrong Answer

Solution code:
a, b = map(str, raw_input() .split())
x = 0
y = 0
if a == 'H':
    x += 1
elif b == 'H':
    y += 1

if x == 1 and y == 1:
    print "H"
if x == 0 and y == 0:
    print "H"
if x == 1 and y == 0:
    print "D"
if x == 0 and y == 1:
    print "D"

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B = [s == "H" for s in input().split()]

print(["D", "H"][A ^ B])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


if __name__ == "__main__":
    resolve()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = input

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

Solution code:
a=input();print("DH"[a[0]==a[1]])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x, y = input().split()

if(x != y):
  print("H")
else:
  print("D")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=input()
print("HD"[(s[0]=="D")|(s[2]=="D")])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(a)

Submission status: Wrong Answer

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

print(a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,y=input().split()
print(["D","H"][(x=="H")*(y=="H")])

Submission status: Wrong Answer

Solution code:
a,b = [x for x in input().split()]
if(a=='H' and b=='H'):
  print('YES')
elif(a=='D' and b=='D'):
  print('YES')
else:
  print('NO')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# ABC 056 A - HonestOrDishonest
a,b =map(str,input().split())
if a =="H":
    print("H")
elif a =="D":
    print("H")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print(input()[0])

Submission status: Wrong Answer

Solution code:
a = [i  for i in input().split()]

if a[1] == "H":
    print(a[0])
elif a[1] == "D":
    if a == "H":
        print("D")
        EOFError
        
    else:
        print("H")
        EOFError

Submission status: Wrong Answer

Solution code:
a = [i  for i in input().split()]

if a[1] == "H":
    print(a[0])
elif a[1] == "D":
    if a == "H":
        print("D")
    else:
        print("H")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if input() == 'H H' or 'D D':
    print('H')
else:
    print('D')

Submission status: Wrong Answer

Solution code:
# -*- coding:utf-8 -*-
a,b = map(str,input().split())
H1 = "1"
D1= "-1"
H = int(H1)
D = int(D1)
if H * D == 1:
  print("H")
else:
  print("D")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
for s in input().upper().split():print(s[0],end='')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
    S = input().split(' ')
    a = S[0]
    b = S[1]
    if a == 'H':
        print("H")
    elif a == 'D' and b == 'D':
        print("H")
    else:
        print("D")

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a == b:
    print("H")
elif not a == b:
    print(a)

Submission status: Wrong Answer

Solution code:
inp = raw_input().split()

if inp[0] == 'H': print 'H' if inp[1] == 'H' else 'D'
else: print 'H' if inp[1] == 'D' else 'H'

Submission status: Wrong Answer

Solution code:
lst = input().split(" ")
A =lst[0]
B =lst[1]
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("H")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
str = input().split(' ')
a = str[0]
b = str[1]

res = 'H'
if a != b:
  res = 'D'
else:
  res = 'H'

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env 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("H")
elif a == "D" and b == "D":
    print("H")

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python

a, b = input().split()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=input()
if a[0] !=a[2]:
    print("H")
else:
    print("D")

Submission status: Wrong Answer

Solution code:
a=input()
if a[0] !=a[1]:
    print("H")
else:
    print("D")

Submission status: Wrong Answer

Solution code:
l_vec = input().split()
def classifier1(l) :
    if ((l[0] == 'H') and (l[1] == 'H')) or ((l[0] == 'D') and (l[1] == 'D')) :
        return 'H'
    else :
        return 'D'
classifier1(l_vec)

Submission status: Wrong Answer

Solution code:
i = raw_input().split(" ")
print( "H" if ((i[0] == "H" and i[1] == "H") or (i[1] == "D")) else "D" )

Submission status: Wrong Answer

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

Submission status: Time Limit Exceeded

Solution code:
X = map(int,input().split())
#X=7
P = {0}
i=1
while True:
    Q = {0}
    for p in P:
        Q.add(p+i)
        Q.add(p-i)
    P = P.union(Q)
    if X in P:
        print(i)
        break
    i = i+1

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:
say = ''.join(input().split())
if say=='HH' or say== 'DD':
    print('H')
else:
    print('D')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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 == 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 == 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 = map(str,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:
#!/usr/bin/env python3

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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 = input().split()
dic = {"H":True,"D":False}
a = dic[a]
b = dic[b]
print("D" if a^b else "H")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a = input().split()
if (a[0] == 'H' and a[1] == 'H') or (a[0] == 'D' and a[1] == '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 = 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()
x= a=="H"
y= b=="H"
if x^y:
    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" 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 == b:
    print("H")
else:
    print("D")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#ABC056A
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:
#56
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)
else:
    if b == 'D':
        print('H')
    else:
        print('D')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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':
    if b == 'H':
        ans = 'H'
    else:
        ans = 'D'
else:
    if b == 'H':
        ans = 'D'
    else:
        ans = 'H'

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

print('H') if (A == 'D' and B == 'D') or (A == 'H' and B == '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()
print(("D", "H")[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()

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

Submission status: Accepted

Solution code:
# A - HonestOrDishonest
# https://atcoder.jp/contests/abc056/tasks/abc056_a

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)

Submission status: Accepted

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

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

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