﻿from random import randint
def f():
    c=0
    for k in range(4):
        if randint(1,4)==1:
            c=c+1
    return c
S=[f() for k in range(10000)]
print(S)
print(sum(S)/len(S))
