This is a question that has been asked for thousands of years (no really, it was mostly about reincarnation and putting someone's soul in another body though), and there is no real "true answer". The ship of Theseus was partially based on this issue which infamously has no answer either...