from random import random
n = 0
for i in range(5000):
    x = random()
    y = random()
    if (y < x*x):
        n+=1
print(n/5000)
