LearnPy Hub
← Arena
AdvancedRating 1500

Grid Points in a Circle

Count the points (x, y) with integer coordinates and x² + y² ≤ r².

Input

One integer r (0 ≤ r ≤ 10⁶).

Output

One integer.

Sample 1

Input
0
Output
1

Sample 2

Input
1
Output
5
solution.py
Output appears here
Grid Points in a Circle · Python Arena problem · LearnPy Hub