Although not commonly known , a person is more likely to be infected with hepatitis b
For transmission of either virus the other persons would've had to had open bleeding lesions on any area that you may have been in contact.
It cannot be transmitted by simple body contact , these virues are blood borne .Transmission would also occur from mother to child, needle prick injury
, sexual contact.
If you remain concerned, you can consider visiting your doctor for screening tests to be done
I hope this helps