SPAM has the perfect amount of salt and fat to cook nicely with pinto beans. It has a strudy, storeable container and also keeps forever without refrigeration. Even if one doesn’t consider it gourmet fare, it’s a very good thing to have in ones emergency provisions (along with pinto beans).
That combo has lots of protein and good quality carbohydrates in the pinto beans
I'm sure it could sustain life for a few months if you had vitamin C pills