﻿from random import random
X=[1 if random()**2<0.5 else 0 for k in range(1000)]
print(sum(X)/1000)
