Ladies what is this ?

It’s the first time I ever see this in my 20 years of life. I know it’s gross. But it’s hard to the touch feels like a ball. I’m on the pill but this time I got my period before I even finished the pack. The ball is tiny but half bloody and half clearish yellow that part is sticky too. Here’s a picture of it, any help would be great