Hi,
Yes, it's a bit ugly but that's the way I'd do it. Sometimes you can rephrase the sentence so you can show possessive by "of."
- A.