Play with Digit Seven

Problem Name:
Play with Digit Seven
Site:Spoj
Links:
Tags:
Problem setters: