from random import random
n = 0
c = int(input('Nombre de choix : '))
for i in range(c):
    x = random()
    y = random()
    if (y < x*x):
        n = n + 1

print(n/c)
