Interesting number

Problem Name:
Interesting number
Site:Spoj
Links:
Tags:
Problem setters: