Siddique is making a wedding cake. He needs 2.5 kg of flour. Each bag of flour weighs 500g. How many bags will he need to buy?