Harada and the lucky numbers

Problem Name:
Harada and the lucky numbers
Site:CodeForces
Links:
Tags: