Triangle ABC has three different integer side lengths. Side AC is the longest side, and side AB is the shortest side. If the perimeter of ABC is 384 units, what is the greatest possible difference AC − AB?