Problem

Source:

Tags: number theory, Digits



Let's call a ticket with a number from $000000$ to $999999$ excellent if the difference between some two adjacent digits is $5$. Find the number of excellent tickets.