Score : $100$ points
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
D, and carries the following information:
H, AtCoDeer is honest; if $a$=
D, AtCoDeer is dishonest.
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.
The input is given from Standard Input in the following format:
If TopCoDeer is honest, print
H. If he is dishonest, print
In this input, AtCoDeer is honest. Hence, as he says, TopCoDeer is honest.
In this input, AtCoDeer is dishonest. Hence, contrary to what he says, TopCoDeer is dishonest.