Suspension seatpost or stem?

Hey guys, looking to improve my ride comfort and decided to buy suspension stem and seatpost, but can do it only one at the time and wondering which one is worth more to invest in? I have slight arm pain in one of my hand after long ride so think of stem, but wonder what are opinions of those who used both