COMMON STOCK AND TREASURY STOCK - Share Repurchase Program (Details) - USD ($)
|
12 Months Ended |
Jun. 30, 2019 |
Jun. 30, 2018 |
Jun. 30, 2017 |
| Class of Stock [Line Items] |
|
|
|
| Common stock repurchased, average price per share (in usd per share) |
$ 99.38
|
$ 62.13
|
$ 49.81
|
| Value of total number of shares purchased |
$ 470,448,000
|
$ 445,014,000
|
$ 98,745,000
|
| Remaining authorization at the end of the period |
$ 35,800,000
|
$ 306,200,000
|
$ 1,300,000
|
| Common Stock |
|
|
|
| Class of Stock [Line Items] |
|
|
|
| Stock repurchased and retired (in shares) |
4,733,853
|
7,162,312
|
1,982,411
|
| Value of total number of shares purchased |
$ 5,000
|
$ 7,000
|
$ 2,000
|
| Common Stock | March Repurchase Program |
|
|
|
| Class of Stock [Line Items] |
|
|
|
| Amount of Publicly Announced Program |
$ 200,000,000
|
|
|
| Stock repurchased and retired (in shares) |
1,172,277
|
|
|
| Common stock repurchased, average price per share (in usd per share) |
$ 90.63
|
|
|
| Value of total number of shares purchased |
$ 106,200,000
|
|
|
| Remaining authorization at the end of the period |
0
|
|
|
| Common Stock | May Repurchase Program |
|
|
|
| Class of Stock [Line Items] |
|
|
|
| Amount of Publicly Announced Program |
$ 200,000,000
|
|
|
| Stock repurchased and retired (in shares) |
2,221,749
|
|
|
| Common stock repurchased, average price per share (in usd per share) |
$ 90.02
|
|
|
| Value of total number of shares purchased |
$ 200,000,000.0
|
|
|
| Remaining authorization at the end of the period |
0
|
|
|
| Common Stock | November Repurchase Program |
|
|
|
| Class of Stock [Line Items] |
|
|
|
| Amount of Publicly Announced Program |
$ 200,000,000
|
|
|
| Stock repurchased and retired (in shares) |
1,339,827
|
|
|
| Common stock repurchased, average price per share (in usd per share) |
$ 122.56
|
|
|
| Value of total number of shares purchased |
$ 164,200,000
|
|
|
| Remaining authorization at the end of the period |
$ 35,800,000
|
|
|