Don’t rule out oatmeal.
It can be fairly inexpensive, depending on what you get it, and it is far more nutritious than rice.
It keeps fairly well, at that.
oatmeal, grits, and dry flaked potatoes to make mashed. Good to go.