The painted over sections 2#296

The painted over sections 2

0.1 seconds
64 megabytes
Medium

On a sheet with a grid of cells of size millimeters, a circle with radius millimeters is drawn. All cells that intersect with the circle are painted. All other cells, including those that only touch the circle, are left unpainted. The center of the circle is always placed at the intersection of grid lines. Determine the number of painted cells.

Input

A single line contains two integers and (M, R \leq 40000), separated by a space.

Output

Output the number of painted cells.

Examples

Example 1

Loading
Loading