Convert a2b3c4 to aabbbcccc