| Fees Summary | Oct. 02, 2025  USD ($) | 
|---|---|
| Fees Summary [Line Items] | |
| Narrative Disclosure | The pricing supplement to which this Exhibit is attached is a final prospectus for the related offering. | 
| Narrative - Max Aggregate Offering Price | $ 51,598,000 | 
| Final Prospectus | true |