Blackjack
Time limit2sMemory limit2048 MB
Given three integers from 1 to 13, the task prints 1 if their sum is 21 or less, and 0 otherwise.
- Level
Easy1 of 10
- Topics
- Implementation, Math
- Solved
- No attempts yet
Problem
Three integers A, B, and C are given.
Input
The input is given in the following format.
A
B
C
Output
Print 1 if the sum of the three values is 21 or less, and 0 otherwise.
Print only the answer. Do not print anything else, such as a prompt asking for input.
Constraints
1 ≦ A ≦ 13.1 ≦ B ≦ 13.1 ≦ C ≦ 13.- All input values are integers.