407196: GYM102697 167 Blackjack
Description
In the card game of blackjack, a player competes with a dealer, who in the first rounds, distributes two cards to both the player, and to themselves. These two cards determine the play of the next turn, as the objective of the game is to achieve a total score of 21, through the combination of number and face cards.
Each face card is worth 10 points, while the number cards are worth their value points in their numbers. An ace, however, is worth 11 points, but if an ace causes the player's pool to go over its 21 point limit, it may become devalued to 1 point.
InputYou will be given two space-separated card values, the total of which will not be less than 10. Assume that given aces will automatically be valued at 11.
OutputPrint out the card value that you must get for the next round in order to reach a score of 21. If 10 points are needed, print "FACE CARD/10". If the two given cards' total value is already equal to 21, print, "BLACKJACK".
ExamplesInputA 10Output
BLACKJACKInput
3 8Output
FACE CARD/10Input
6 4Output
AInput
6 7Output
8