Tom and Jerry are playing a game with a pile of 21 stones. They take turns removing 1, 2, or 3 stones from the pile, with Tom going first. The player who removes the last stone wins the game. To ensure his victory, how many stones must Tom take away on the first turn? Let's think step by step and output the final answer within \boxed{}.
user