import randomS =20e6N = 0for i in range(int(S)):x = random.random()y = random.random()d = (x-0.5)**2+(y-0.5)**2if d<=0.5**2: N+=1else:passPI = 4*N/Sprint(PI)print("3105")