for i from 1 to 60:
MakeSet(i)
for i from 1 to 30:
Union(i, 2*i)
for i from 1 to 20:
Union(i, 3*i)
for i from 1 to 12:
Union(i, 5*i)
for i from 1 to 60:
Find(i)
Assume that the disjoint sets data structure is implemented as disjoint trees with union by rank heuristic and with path compression heuristic.
Compute the maximum height of a tree in the resulting forest.