EasyRating 800
Who Won More Games?
Two players A and D played n games. Given who won each game, print A, D, or Friendship if they won the same number.
Input
A string of A and D.
Output
A, D or Friendship.
Sample 1
Input
ADAAAA
Output
A
Sample 2
Input
DDDAADA
Output
D
Output appears here