In a game, Anna and Bill take 1, 2, or 3 coins on each turn. The player to take the last coin from the pile wins. If Anna goes first and there are 40 coins on the table, how many coins should she take to guarantee that she would win?