#155. blackjack

blackjack

Background

Description

Given 2 int values greater than 0, return whichever value is nearest to 21 without going over. Return 0 if they both go over.

Format

Input

Output

Samples

19 21
21
21 19
21
19 22
19

Limitation

1s, 1024KiB for each test case.