﻿from random import randint
L=[]
for k in range(10000):
    b=randint(0,9)
    if 0<=b<3:
        L.append(1)
    if 2<b<6:
        L.append(2)
    if 5<b:
        L.append(3)
print(sum(L)/10000)
