I have seen worse rear sprockets but not often. The front one, it's not so easy to say but just get a new one. And a chain of course. Best to always replace the chain and both sprockets.
bad sprockets will ruin a new chain quickly. A worn chain will damage new sprockets quickly.