Darts
Darts is a game where players aim to hit a circular target on a wall by throwing small arrows, known as darts. The standard dartboard is divided into twenty numbered sections, each labeled from 1 to 20. At the center of the board is the "bullseye," worth 50 points, surrounded by a green ring that scores 25 points. The board also features an outer narrow ring, called the "doubles" ring, which doubles the score of the sector it surrounds, and an inner narrow ring, known as the "triples" ring, which triples the sector's score. The points for each sector are clearly marked on the board. Traditionally, the outer and inner narrow rings are painted red and green. If a dart lands outside the circle defined by the outer narrow ring, it scores no points. The target is mounted on the wall with its center at the coordinates (0, 0). After a throw, the dart is found at the coordinates (x, y) (all measurements are in millimeters, where y is the vertical coordinate and x is the horizontal). Your task is to calculate the number of points scored from this throw. It is guaranteed that the dart does not land on the boundary between two sectors, ensuring a unique score.
Standard dartboard dimensions:
Width of the "doubles" and "triples" rings: 8 mm.
Diameter of the "bullseye": 12.7 mm.
Diameter of the outer central ring: 31.8 mm.
Distance from the center to the outer edge of the "doubles" ring: 170.0 mm.
Distance from the center to the outer edge of the "triples" ring: 107.0 mm.
Input
The input consists of two decimal numbers (each with 2 decimal places) separated by a space, representing the coordinates of the dart's landing point.
Output
Output a single number — the score for the dart throw.