Beautiful Roll Numbers

Problem Name:
Beautiful Roll Numbers
Site:Spoj
Links:
Tags:
Problem setters: