Under construction

Still being built. Things may change

Blackjack

Time limit2sMemory limit2048 MB

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

Examples2

  1. Example 1

    Input
    5
    10
    6
    
    Expected output
    1
    
  2. Example 2

    Input
    7
    8
    13
    
    Expected output
    0