from random import *
from math import *

n = 10000
k = 0

for i in range(n):
    x = uniform(-sqrt(2)/3, sqrt(2)/3)
    y = uniform(-sqrt(2)/3, sqrt(2)/3)
    z = uniform(-sqrt(2)/3, sqrt(2)/3)
    if ():
        k+=1
print(k/n)
