from random import *

N=0
for i in range(1,1001):
    a=random()
    b=random()
    if a**2+b**2<=1:
        N=N+1
print(N)








