print inversions