from math import log

D=-(3/6)*log((3/6),2)-(3/6)*log((3/6),2)
print(D)

A=(3/6)*(-(2/3)*log((2/3),2)-(1/3)*log((1/3),2))
print (A)

S = (3/6)*(-(2/3)*log((2/3),2)-(1/3)*log((1/3),2)) + (2/6)*(-(1/2)*log((1/2),2)-(1/2)*log((1/2),2))
print (S)

C= (3/6)*(-(2/3)*log((2/3),2)-(1/3)*log((1/3),2))+(3/6)*(-(2/3)*log((2/3),2)-(1/3)*log((1/3),2))
print(C)

print (D-A)
print (D-S)
print (D-C)
