Amen to Havdala Without Hearing Words Clearly

Kvod harav, I heard havdalah in a shul but all I heard was him speaking I couldn’t understand what he was saying, but I still still say amen to it, am i yotzei

You aren’t yotzei if you didn’t hear the whole Bracha of hamavdil, but the light and besamim you’ll be yotzei without it