У самого (+ masculine noun in genitive case)... У самой (+ feminine noun in genitive case)...
I guess that the initial form of these pronouns may be either "сам"/"сама" or "самый"/"самая". Unfortunately, it's written text and the book does not provide any accent marks. So how would you determine if it's a form of сам or самый?