Card Game

No attempts yetTime limit1sMemory limit256 MB

Problem

Print the winner of the 10-round card game.

Input

Ten cards for A and B.

Output

Print A, B, or D.