As I stated before, it was not immoral to receive welfare once you'd already been forced to pay into it.
According to every source I could find on the issue, Ayn Rand and her husband, combined, received a total of roughly $14,000 dollars in social security benefits. No Medicare information could be found.
This would be a very small fraction of the amount she paid into those programs over 50 years of working in Hollywood and writing several best-sellers.