Installing XenForo on two subdomains?

We would like to split our forums in half with two installations of forum software, each on a separate subdomain of our site. and, for example.

Will we need to purchase two licenses of XenForo for this or can we use one, since both installations are on the same domain?

Thank you.