Determine energy of photon when frequency is given

How do I determine the energy of a 300nm photon?

Energy = hc/wavelength where h= Planck's constant, c= speed of light. You will need to match units of length as c is in m/s and wavenlength is in nanometer (10^-9 m)

Energy = hc/wavelength where h= Planck's constant, c= speed of light. You will need to match units of length as c is in m/s and wavenlength is in nanometer (10^-9 m)