Seunghyun was born on March 5, 1998, so he is very fond of the digits 3, 5 and 8 that appear in his birth date. He decided to call a positive integer a birthday number when its decimal representation consists of the digits 3, 5 and 8 only. For example, 3, 533 and 858553 are birthday numbers, while 3518, 1642 and 88808 are not.
You are given two birthday numbers x and y (x<y). List every birthday number that is at least x and at most y in increasing order as a1,a2,…,ak, and write a program that computes a1×a2+a2×a3+⋯+ak−1×ak. Handling huge numbers is always a bother, so print the value modulo 19980305, which is Seunghyun's birth date.