Vus the Cossack and Numbers

Problem Name:
Vus the Cossack and Numbers
Site:CodeForces
Links:
Tags:
Problem setters: