Medicare and Social Security are just a tax. Collectively we've decided we'll all take care of our old and infirm. We spend the money we take in every year, and besides the occasional Congress deciding to raid the Social Security trust fund, we just take care of people. As a percentage, are the number of people paying in decreasing, sure, but there's a number of quick solutions: either move the age at which you can collect, or keep the benefits fixed (or even shrink them). Solvency returned.
HN: Don't fall in to the trap. People are trying to convince you that SS and Medicare are insolvent, doomed to fail, etc. They are not. They are some of the most successful, and helpful programs the US has ever created. They are a simple wealth distribution model, where we've decided there's a basic level of livability that humans can't fall beneath. Don't fall into the trap of believing oligarchs and libertarians. The two programs have ushered in the boom since the great depression, and allowed access to healthcare for people who otherwise would just die.