Problem: p03777
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
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")


Failing test case input:
H B

Expected output:
D


Actual output:

Fixed submission (verdict: Accepted):
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")
else:
    print("D")

Problem: p03777
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b = map(str,input().split())
if a == "D" and b == "D":
    print("H")
elif a == "H":
    print("H")
elif a == "D":
    print("D")

Failing test case input:
H ;

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
a,b = map(str,input().split())
if a == "D" and b == "D":
    print("H")
elif a == "H" and b == "H":
    print("H")
elif a == "D" and b == "H":
    print("D")
else:
    print("D")

Problem: p03777
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a, b = map(str, input().split())
if a==b:
  print('H')
else:
  print('F')

Failing test case input:
S H

Expected output:
D


Actual output:
F


Fixed submission (verdict: Accepted):
a, b = map(str, input().split())
if a==b:
  print('H')
else:
  print('D')

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
L=list(input().split())
if len(set(L))==2:
  print("H")
else:
  print("D")

Failing test case input:
T H

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
A,B=input().split()
if A==B:
  print("H")
else:
  print("D")

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=input().split()
print("H" if b=="D" else a)

Failing test case input:
H 15

Expected output:
D


Actual output:
H


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

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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")

Failing test case input:
V H

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
A, B = map(str,input().split())
if A == "H":
  if B == "H":
    print("H")
  else:
    print("D")
else:
  if B == "D":
    print("H")
  else:
    print("D")

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=input().split()
print('H' if(a==b or a == 'H') else 'N')

Failing test case input:
14 H

Expected output:
D


Actual output:
N


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

Problem: p03777
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = input().split()

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

Failing test case input:
H U

Expected output:
D


Actual output:
H


Fixed submission (verdict: Accepted):
a,b = input().split()

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