v3.26.3
RETIREMENT AND PROFIT SHARING PLANS - Additional Information (Details) - USD ($)
$ in Thousands
12 Months Ended
Aug. 31, 2026
Aug. 31, 2025
Aug. 31, 2024
Defined Benefit Plan Disclosure [Line Items]      
Pension expense $ 250,447 $ 219,933 $ 222,891
Contributions to U.S. and non-U.S. defined benefit pension plans and benefit payments related to the unfunded frozen plan for former pre-incorporation partners 190,477    
Total expenses recorded for defined contribution plans 995,722 949,214 914,092
Level 2 | U.S. Plans      
Defined Benefit Plan Disclosure [Line Items]      
Fair value of plan assets 238,497 246,267  
Level 2 | U.S. Plans | U.S. corporate debt securities      
Defined Benefit Plan Disclosure [Line Items]      
Fair value of plan assets 166,366 167,631  
Level 2 | U.S. Plans | U.S. government, state and local debt securities      
Defined Benefit Plan Disclosure [Line Items]      
Fair value of plan assets $ 29,012 38,030  
Postretirement Plans      
Defined Benefit Plan Disclosure [Line Items]      
Annual trend rate in cost of health care benefits for the next year 9.00%    
Ultimate rate for the cost of health care benefits 4.00%    
Fair value of plan assets $ 26,182 $ 27,795 $ 29,140