Types: NA: int, NB: int, A_cards: List[str], B_cards: List[str]
Ranges: 0 ≤ NA, NB ≤ 52, A_cards[i], B_cards[i] ∈ {'S', 'H', 'D', 'C'} × {'A', 'K', 'Q', 'J', 'X', '9', '8', '7', '6', '5', '4', '3', '2'}
Addtl Info: Input ends when NA = 0