While it might seem strange, "madam" can be used as a preposition in a few contexts, often in a formal or antiquated style.
Here's an example: "Madam, I'm Adam."
In this case, "madam" acts as a preposition meaning "to" or "towards".
It's worth noting that this use of "madam" is quite uncommon in modern English.