Anagram balancing