Question?

Me and my boyfriend broke up back in May. I had unprotected sex on May 14 with a friend, he did not cum in me then had my period May 29th - June 1st. Then had unprotected sex a day or two after my period with my boyfriend, he did cum in me. I am now 22 weeks & 5 days pregnant. Who is the father?