407196: GYM102697 167 Blackjack

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

167. Blackjacktime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

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.

Input

You 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.

Output

Print 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".

ExamplesInput
A 10
Output
BLACKJACK
Input
3 8
Output
FACE CARD/10
Input
6 4
Output
A
Input
6 7
Output
8

加入题单

上一题 下一题 算法标签: