This is the 15166th most frequent Polish word.
samy
"Samy" in Polish means "the very," "himself," "itself," or "alone," depending on context.
Here, 'sam' is used as an adverb to indicate that the subject performed the action independently, without assistance.
On zrobił to sam.
He did it himself.
Here, 'samą' is a different form of 'sam' functioning as an adjective to emphasize the noun (book) being discussed.
Ona znalazła samą książkę.
She found the book itself.
Here, 'samym' is a declined form of 'sam' used as a part of a phrase indicating 'the same' to emphasize the identity of the room.