Math Problem (Level 2) : Four figures containing 5 (HH14)

Find the number of numbers which contain two or more 5 such as 0545 among 4 figures number which are used for the telephone numbers from 0000 to 9999.





Answer
523