You should study some books about nutrition so you will know the cause of your occasional problems. For example, when I was hanging out on doomsday forums I noticed that everybody kept talking about “beans and rice” as subsistence foods, so I tried that to see what would happen. After oh, about three days I noticed a suspicious feeling of fullness, and that is when it occurred to me that I hadn’t dumped in oh, about three days. Conclusion: if you have to subsist on beans and rice you better drink A LOT of water.
Your body needs fiber to keep the food moving through the system. It doesn’t take much: two slices of whole grain bread every day will do it. Second best is veggies with every meal. Your gut needs growing things to help digest the food. They are called “flora” which means “flowers”, but yogurt bacteria are a very good substitute. Yogurt bacteria manufacture B vitamins and do not produce gas. When you don’t have anything working for you, the food rots and make volumes of stinky gas. Third, you need magnesium to keep the muscles strong. I mean the muscles that squeeze the food through the pipes. So if you get all three of these, you are pretty well set to digest any kind of food.
Magnesium strengthens muscles, calms nerves, stops cramps, and fights infections. Get epsom salt. It is cheap, five bux for a year’s supply. Put a dose in a glass with water to cover and stir until it dissolves. Fill the glass with lemonade and drink it. You can take it without the lemonade but you won’t like the taste. Milk of magnesia is more expensive but nicer tasting and gentler laxative action. Your choice.