from random import randint

def simul(n):
    total = 0
    for k in range(n):
        D = randint(1,6)
        if D % 2 == 0:
            total = total + 1

    return total
