a=float(5) c=8 b=12 v=5 a='{:.3f}'.format((a+c+b)/3) n=39//v m=39//c t=39//b j=39-n*5 h=39-m*8 t2=39-t*12 print(a) print(n,j) print(m,h) print(t,t2)