A plane electromagnetic wave in the visible region is moving along the Z-direction. The frequency of the wave is 0.5×10^(15) Hz and the electric field at any point is varying sinusoidally with time with an amplitude of 1V/m. The average value of energy densities of the electric and magnetic fields respectively are