Choose the noun form whose ending matches the case that the preposition requires in the sentence.
Serbian has 7 cases; the preposition plus the meaning (motion vs. position, etc.) decides which one. Note sa means both "with" (instrumental) and "off/from" (genitive) — read the sentence.