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

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

Submission status: Runtime Error

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

Solution code:
arr = input().split()
arr = list(map(str,arr))
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('D')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
input = sys.stdin.readline
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:
a = input()
b = input()

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

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

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().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 = input()
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: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
from sys import stdin

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

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

Submission status: Runtime Error

Solution code:
n = int(input())

ct = 1
while ct*(ct+1)//2 < n:
    ct +=1
print(ct)

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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


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

Submission status: Runtime Error

Solution code:
input_ = input().split()
if input_[0] != input_[-1]:
  return "D"
else:
  return "H"

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
print('HD'[a==b])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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:
s=input().split()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = input()
t = input()
if a == "H" and t == "H":
  print("H")
elif a == "H" and t == "D":
  print("D")
elif a == "D" and t == "H":
  print("D")
else:
  pass

Submission status: Runtime Error

Solution code:
a = input()
t = input()
if a == t:
  print("H")
elif a != t :
  print("D")
else:
  pass

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b = (int(x) for x in 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 =='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(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:
a, b = map(int, input().split())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

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

Submission status: Runtime Error

Solution code:
a,b=map(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=map(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 = 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:
w, a, b = map(int, input().split())
dis = abs(a - b) - w
print(max(dis, 0))

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush, heapify
import math
import itertools
import random
 
# NO, PAY-PAY
#import numpy as np
#import statistics
#from statistics import mean, median,variance,stdev
 
INF = float('inf')
def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
 
def main():
    a,b = inputMap()
    
    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: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;

int main(){
    char a, b;
    cin >> a >> b;
    bool flag = false;
    if (a == 'H' && b == 'H'){
        flag = true;
    }
    if (a == 'D' && b == 'D'){
        flag = true;
    }
    if (flag){
        cout << 'H' << endl;
    }else{
        cout << 'D' << endl;
    }
    
}

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b = input().split()
H_D_map = {"H":1,"D":-1}
a = H_D_map[a]
b = H_D_map[b]

if a*B==1:
  print("H")
else:
  print("D")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=input('')
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')
elif a=='D' and b=='D':
    print('H')

Submission status: Runtime Error

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

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().spilt()

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
Tmp = []
Tmp = input().rstrip().split(',')
 
sA = (Tmp[0])
sB = (Tmp[1])

if sA == 'H' and sB == 'H':
  print('H')
elif sA == 'H' and sB == 'D':
  print('D')
elif sA == 'D' and sB == 'D':
  print('H')
elif sA == 'D' and sB == 'H':
  print('D')

Submission status: Runtime Error

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

Solution code:
import sys, re, os
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd
 
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def S_LIST(): return list(map(str, input().split()))

sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

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

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

Submission status: Runtime Error

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: 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(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(str,input().split())
num = 0
if a == "D"
  num = num + 1
if b == "D"
  num = num + 1
if num%2 == 0:
  print("H")
else:
  print("D")

Submission status: Runtime Error

Solution code:
if [input(),input()].count("H") == 1:
	print("D")
else:
	print("H")

Submission status: Runtime Error

Solution code:
if [input(),input()].count("H") == 1:
  print("D")
else:
  print("H")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
at = input().split()
top = input().split()
at_i = 0
top_i = 0
if at =='H':
  at_i = 1

if at == 'D':
  at_i = -1

if top == 'H':
	top_i = 1

if top == 'D':
  top_i = -1

if top_i * at_i == 1:
    print("H")
else :
    print("D")

Submission status: Runtime Error

Solution code:
at = input().split()
top = input().split()
if at =='H':
  at_i = 1

if at == 'D':
  at_i = -1
  
if top == 'H':
	top_i = 1

if top == 'D':
  top_i = -1

if top_i * app_i == 1:
  print("H")
else
	print("D")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# encoding:utf-8
import copy
import random
import bisect #bisect_left　これで二部探索の大小検索が行える
import fractions #最小公倍数などはこっち
import math

mod = 10**9+7

a,b = map(str,input().split())

if a == "H" and b == "H":
    tp == True
elif a=="D" and b == "H"
    tp == False
elif a=="D" and b=="D":
    tp = True
else:
    tp = False


if tp:
    print("H")
else:
    print("D")

Submission status: Runtime Error

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

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:
w, a, b = map(int, input().split())
print(max(abs(a-b)-w,0))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
H H

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys, os

f = lambda:list(map(int,input().split()))
if 'local' in os.environ :
    sys.stdin = open('./input.txt', 'r')

def solve():
    a , b = input(), input()
    if a == 'H':
        print(b)
    else:
        if b == 'D':
            print('H')
        else:
            print('D')

solve()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b = (str(x) for x in input().split())
if a = "H":
    pass
elif b = "H":
    b = "D"
else:
    b = "H"

print(b)

Submission status: Runtime Error

Solution code:
a,b = (str(x) for x in input().split())
if a = "H":
    continue
elif b = "H":
    b = "D"
else:
    b = "H"

print(b)

Submission status: Runtime Error

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

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:
if input()==input(): print('H')
else print('D')

Submission status: Runtime Error

Solution code:
if ab[0] == "H" and ab[1] == "H":
    print("H")
    
elif ab[0] == "H" and ab[1] == "D":
    print("D")
    
elif ab[0] == "D" and ab[1] == "H":
    print("D")
    
elif ab[0] == "D" and ab[1] == "D":
    print("H")

Submission status: Runtime Error

Solution code:
a,b = list(map(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 = list(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:
w,a,b = map(int,input().split())
ans = 0
if b > a:
    if a + w < b:
        ans = b - (a + w)
else:
    if b + w <= a:
        ans = a - (b + w)

print(ans)

Submission status: Runtime Error

Solution code:
x=input().split().replace(' ','')
print('H' if x=='HH' or x=='DD' else 'D')

Submission status: Runtime Error

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

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:
import bisect
x = int(input())
a = [1]
s = 1
for i in range(2, x+1):
    s += i
    a.append(s)

if x in a:
    print(a.index(x) + 1)
    exit()

print(bisect.bisect_right(a, x)+1)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
w,a,b = [int(x) for x in input().split()]
print(abs(b-w-(b-a+w))) if a+w <= b else print(0)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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