Set Scoreboards on join

I'm trying to make a system where every time someone joins the scoreboard value "lives" gets set to 3 but I'm not sure how to do this

Continue to help post