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 = list(map(str, input().split()))
hd = True if a == "H" else False
if hd: print(b)
else:
    print("H") if b == "D" else print("D")

Submission status: Accepted

Solution code:
#coding: utf-8

a, b = input().split()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = [i for i in 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=input().split();print('HD'[a!=b])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

def main():
    a, b = raw_input().split()
    if a is "D":
        if b is "H":
            print "D"
        elif b is "D":
            print "H"
    elif a is "H":
        if b is "H":
            print "H"
        elif b is "D":
            print "D"

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def main():
    a,b = input().split()
    if a == 'H':
        print("HD"[b=='D'])
    else:
        print("HD"[b!='D'])
    
if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
l = raw_input().split(" ")

if l[0]==l[1]:
    print "H"
else:
    print "D"

Submission status: Accepted

Solution code:
str = input().rstrip().split(" ")
a = str[0]
b = str[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:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

def LI(): return list(map(int, input().split()))
def LF(): return list(map(float, input().split()))
def II(): return int(input())
def LS(): return input().split()
def S(): return input()



def main():
    a,b = LS()
    if a == b:
        return 'H'
    return 'D'

print(main())

Submission status: Accepted

Solution code:
import math

l = input().split()

if l[0] == 'H':
    if l[1] == 'H':
        result = 'H'
    else:
        result = 'D'
else:
    if l[1] == 'H':
        result = 'D'
    else:
        result = 'H'

print(result)

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:
#ABC056A

a,b=raw_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 = [True if c == 'H' else False for c in raw_input().strip().split()]
print 'D' if a ^ b else 'H'

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:
print(['D','H'][len(set(input().split()))==1])

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

a = input().split()
if(a[0] == 'H'):
    if(a[1] == 'H'):
        print("H")
    if(a[1] == 'D'):
        print("D")
if(a[0] == 'D'):
    if(a[1] == 'H'):
        print("D")
    if(a[1] == 'D'):
        print('H')

Submission status: Accepted

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

def main():
    a, b = input().split()

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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'
print(classifier1(l_vec))

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:
i = raw_input().split(" ")
print( "H" if ((i[0] == "H" and i[1] == "H") or (i[0] == "D" and i[1] == "D")) else "D")

Submission status: Accepted

Solution code:
a, b = input().split(" ")
s = {"H":"D", "D":"H"}

if a == 'H':
    print(b)
else:
    print(s.get(b))

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
a,b = input().split(' ')

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a, b = raw_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, raw_input().split())

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

Submission status: Accepted

Solution code:
# coding: utf-8

h= map(str, raw_input().split())
num = [0 if t == 'H' else 1 for t in h]
l = num[0] ^ num[1]

print 'H' if l == 0 else 'D'

Submission status: Accepted

Solution code:

a, b = (str(_) for _ in input().split())

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

Submission status: Accepted

Solution code:
l = input().split()
A=l[0]
B=l[1]

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:
# -*- coding: utf-8 -*-
Inp = raw_input().split()
if Inp[0] == "H":
    if Inp[1] == "H":
        print("H")
    else:
        print("D")
else:
    if Inp[1] == "H":
        print("D")
    else:
        print("H")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

INF = 10**9+7

stdin = sys.stdin
def na(): return map(int, stdin.readline().split())
def nal(): return list(map(int, stdin.readline().split()))
def ns(): return stdin.readline().strip()
def nsl(): return list(stdin.readline().strip())
def ni(): return int(stdin.readline())

a, b = stdin.readline().strip().split(' ')

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a, b = [0 if _ == 'H' else 1 for _ in input().split()]

res = ['H', 'D']

if a == 1:
    b = 1 - b

print(res[b])

Submission status: Accepted

Solution code:
a,b = map(lambda x:  x == 'H', input().split())
print('H' if ~(a^b)== -1 else 'D')

Submission status: Accepted

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

Submission status: Accepted

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

a, b = map(str, raw_input().split())
result = ''
if a == 'H':
    if b== 'H':
       	result = 'H'
    else:
	result = 'D'
else:
    if b=='H':
        result='D'
    else:
	result='H'

# 出力
print result

Submission status: Accepted

Solution code:
lines = input().split()
a = lines[0]
b = lines[1]
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 = raw_input().split()

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

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
ab = input()
if ab[0] == 'H':
    print(ab[2])
else:
    if ab[2] == '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:
pp = input().strip().split(' ')
if pp[0] == 'H':
    print(pp[1])
elif pp[1] == 'H':
    print('D')
else:
    print('H')

Submission status: Accepted

Solution code:
input_lines = str(input())

a = input_lines.split(' ')[0]
b = input_lines.split(' ')[1]

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

Submission status: Accepted

Solution code:
a,b=input().split()
if a=='H':
    aa=int(1)
else:
    aa=int(0)
if b=='H':
    bb=int(1)
else:
    bb=int(0)
if aa^bb==1:
    top = 'D'
else:
    top = 'H'

print(top)

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    a, b = input().split()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
data = input().split()
a = data[0]
b = data[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:
import sys
import numpy as np

def get_read_func(fileobject):
    if fileobject == None :
        return raw_input
    else:
        return fileobject.readline

def main():
    if len(sys.argv) > 1:
        f = open(sys.argv[1])
    else:
        f = None
    read_func = get_read_func(f);
    input_raw = read_func()
    top_str = input_raw.strip().split()
    [a, b] = [top_str[0], top_str[1]]
    if a == 'H':
        TopCoDeer = b
    else:
        if b == 'H':
            TopCoDeer = 'D'
        else:
            TopCoDeer = 'H'
    print TopCoDeer

if __name__ == '__main__':
    main()

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
key = tuple(input().split())
table = {("H", "H"): "H", ("H", "D"): "D",
         ("D", "H"): "D", ("D", "D"): "H"}
print(table[key])

Submission status: Accepted

Solution code:
a,b=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:


a, b = input().split()

H = True

if b == 'H':
    H = True
elif b == 'D':
    H = False

if a == 'D':
    H = not H

if H:
    print('H')
else:
    print('D')

Submission status: Accepted

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

Submission status: Accepted

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

a,b = raw_input().split()

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

Submission status: Accepted

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

if A=='H' :
    a=1
else:
    a=0

if T=='H' :
    t=1
else:
    t=0

if a+t!=1:
    print('H')
else:
    print('D')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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


if __name__ == "__main__":
    main()

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

Submission status: Accepted

Solution code:
line = raw_input().split(" ")
a = line[0]
b = line[1]

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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'

    
print(result)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# AtCoDeerくんとTopCoDeerくんが何と言ってるかを a,bで入力
a,b = input().split()
# もしa=Hでb=HならTopCoDeerくんは正直者
if a = "H":
    if b = "H":
        print("H")
# もしa=Dでb=HならTopCoDeerくんは正直者
elif a = "D":
    if b = "D":
        print("H")
# それ以外はbは嘘つき
else:
    print("D")

Submission status: Runtime Error

Solution code:
# 入力
a, b = map(int, 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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys, re
from math import ceil, floor, sqrt, pi, factorial, gcd
from copy import deepcopy
from collections import Counter, deque
from heapq import heapify, heappop, heappush
from itertools import accumulate, product, combinations, combinations_with_replacement
from bisect import bisect, bisect_left, bisect_right
from functools import reduce
from decimal import Decimal, getcontext
# input = sys.stdin.readline 
def i_input(): return int(input())
def i_map(): return map(int, input().split())
def i_list(): return list(i_map())
def i_row(N): return [i_input() for _ in range(N)]
def i_row_list(N): return [i_list() for _ in range(N)]
def s_input(): return input()
def s_map(): return input().split()
def s_list(): return list(s_map())
def s_row(N): return [s_input for _ in range(N)]
def s_row_str(N): return [s_list() for _ in range(N)]
def s_row_list(N): return [list(s_input()) for _ in range(N)]
def lcm(a, b): return a * b // gcd(a, b)
sys.setrecursionlimit(10 ** 6)
INF = float('inf')
MOD = 10 ** 9 + 7
num_list = []
str_list = []

def main():
    a, b = i_map()

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

if __name__ == '__main__':
    main()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
w, a, b = list(map(int, input().split()))
if b > (a + w):
  print(b - (a + w))
else:
  print(0)

Submission status: Runtime Error

Solution code:
a,b = raw_input().split()
if a == 'H':
	print b
else:
	h = {'H':'C', 'C':'H'}
	print h[b]

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;
using ll = long long;

const ll mod = 1e9 + 7;

int main() {
  string a, b;
  cin >> a >> b;
  int x = a[0] == 'H' ? 1 : 0, y = b[0] == 'H' ? 1 : 0;
  if (x == 0) y ^= 1;
  
  cout << (y ? 'H' : 'D') << endl;
  return 0;
}

Submission status: Runtime Error

Solution code:
a,b=(int(x) for x in input().split())
if a=='H':
    if b=='H':
        print("H")
    elif b=='D':
        print("D")
elif a=='D':
    if b=='H':
        print("D")
    elif b=='D':
        print("H")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

d={'H':0, 'D':1}
print(['H','D'][d[a]^d[b]]

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b = map(int, 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: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b = map(str, input().split())
m = {'D': 'H', 'H': 'D'}

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

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def another(s):
  if s == 'D':
    return 'H'
  else:
    return 'D'

a, b = map(int, input().split())
if a == 'H':
  print(b)
else:
  print(another(b))

Submission status: Runtime Error

Solution code:
x = int(input())
time = 0
 
for i in range(1,10**10):
  time += i
  if time >= x:
    print(i)
    exit()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input()

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

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
hatsugen=["H","D"]
idx=hatsugen.index(b)
if a=="H":
    print(hatsugen[idx])
else:
    print(hatsugen[1-idx])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a,b = input().split()
if a == 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: Runtime Error

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: Runtime Error

Solution code:
a, b = 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: Runtime Error

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

if A == B:
    print("H")
else:
    print("D")

Submission status: Runtime Error

Solution code:
import sys
x = int(input())
i = 1
while True:
    if i*(i+1)//2 >= x:
        print(i)
        sys.exit() 
    i += 1

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b ,c = input().split()
print(c+" "+a+" "+b)

Submission status: Runtime Error

Solution code:
a, b ,c = input().split()
print("{} {} {}".format(c,a,b))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b = map(int,(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: Runtime Error

Solution code:
W, a, b = map(int,input().split())
 
if a+W<=b:
  print(b-(a+W))
elif (a<= b)and (b<(a+W)):
  print(b-a)
elif (a<=b+W) and(b+W<a+W):
  print(a-b)
elif (b+W)<a:
  print(a-(b+W))

Submission status: Runtime Error

Solution code:
a, b = map(int, 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: Runtime Error

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: Runtime Error

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: Runtime Error

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: Runtime Error

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: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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