import random
import numpy as np
date=[]
for i in range (10000):
x=random.uniform(0,2)
y=random.uniform(0,2)
date.append([x,y])
date=np.array(date)
size=0
x1=date[0,0]
y1=date[0,1]
for j in range(0,len(date)):
x1=date[j,0]
y1=date[j,1]
if ((x1-1)**2+(y1-1)**2)**0.5<=1 :
size=size+1
ans=(size/10000)*4
print(ans)