CF842B Gleb And Pizza
Description
Gleb ordered pizza home. When the courier delivered the pizza, he was very upset, because several pieces of sausage lay on the crust, and he does not really like the crust.
The pizza is a circle of radius $ r $ and center at the origin. Pizza consists of the main part — circle of radius $ r-d $ with center at the origin, and crust around the main part of the width $ d $ . Pieces of sausage are also circles. The radius of the $ i $ -th piece of the sausage is $ r_{i} $ , and the center is given as a pair ( $ x_{i} $ , $ y_{i} $ ).
Gleb asks you to help determine the number of pieces of sausage caught on the crust. A piece of sausage got on the crust, if it completely lies on the crust.
Input Format
First string contains two integer numbers $ r $ and $ d $ ( $ 0
Output Format
Output the number of pieces of sausage that lay on the crust.
Explanation/Hint
Below is a picture explaining the first example. Circles of green color denote pieces of sausage lying on the crust.
