Rommel bought 30 000 grams of potatoes. How many kilograms of potatoes did he buy?