def extrai_valor(card):
    if card == '2♦' or card =='2♠'or card =='2♥'or card =='2♣':
        return '2'
    if card == '3♦'or card =='3♠'or card =='3♥'or card =='3♣':
        return '3'
    if card =='4♦'or card =='4♠'or card =='4♥'or card =='4♣':
        return '4'
    if card == '5♦' or card =='5♠'or card =='5♥'or card =='5♣':
        return '5'
    if card == '6♦'or card =='6♠'or card =='6♥'or card =='6♣':
        return '6'
    if card == '7♦'or card =='7♠'or card =='7♥'or card =='7♣':
        return '7'
    if card  == '8♦'or card =='8♠'or card =='8♥'or card =='8♣':
        return '8'
    if card == '9♦'or card =='9♠'or card =='9♥'or card =='9♣':
        return '9'
    if card == '10♦'or card =='10♠'or card =='10♥'or card =='10♣':
        return '10'
    if card == 'Q♦'or card =='Q♠'or card =='Q♥'or card =='Q♣':
        return 'Q'
    if card == 'J♦'or card =='J♠'or card =='J♥'or card =='J♣':
        return 'J'
    if card == 'K♦'or card =='K♠'or card =='K♥'or card =='K♣':
        return 'K'
    if card == 'A♦'or card =='A♠'or card =='A♥'or card =='A♣':
        return 'A'