#B2041. Bottle Cap Redemption

    ID: 11123 Type: Default 1000ms 256MiB

Bottle Cap Redemption

Bottle Cap Redemption

A beverage company recently launched an activity called "Collect Bottle Caps, Win Grand Prizes". In this activity, if you have at least \(10\) bottle caps printed with "Lucky", or at least \(20\) bottle caps printed with "Encouragement", you can redeem a mysterious prize.

You are given two numbers: one representing the number of "Lucky" bottle caps and the other representing the number of "Encouragement" bottle caps you own. Determine whether you can redeem the prize. If you can, output 1; otherwise, output 0.

inputFormat

The input consists of two integers separated by spaces. The first integer is the number of "Lucky" bottle caps and the second is the number of "Encouragement" bottle caps.

outputFormat

Output a single integer: 1 if you can redeem the prize, or 0 otherwise.

sample

10 5
1