Repentance for someone who lost his memory

Q: How does a person who lost his memory repent for sins which he has forgotten?
A: He repents in general terms.