There are 50 beads. Player A and Player B take turns taking beads from the pile, and Player A goes first. Each player can take between 1 and 4 beads per turn. The person who takes the last bead loses. If Player A wants to win, how many beads should they take on the first turn? Let's think step by step and output the final answer within \boxed{}.
user