Hi,Welcome to HCM,
Nothing to worry,at this age both are very common,
Avoid to see sex exciting videos or porn.Concentrate your mind in study.
Have some sports in the evening and keep some good friends.
There is no problem in your health due to night fall or masturbation
Ok and bye.