Problem soft brown sticky stool foul smelling gas. Constipated for three days difficult to pass, dont know all food allergies What to do?

Diet/fiber/water. Add soluble fiber, fresh fruits, vegetables,8-10 glasses of water/day and avoid gas forming foods: onions, cabbage, cauliflower, radishes, lentils etc.- that should help alot.