from math import pi,sin,log10 m,n=100,500 x=sum(log10(4*(s1+s2)) for i in range(m) for j in range(n) if ((s1:=sin(i*pi/(2*m))**2)+(s2:=sin(j*pi/(2*n))**2))>0)-log10(m*n) d=int(x) print(f"{10**(x-d):.4f}e{d}")