Bob and magical scale

Problem Name:
Bob and magical scale
Site:Spoj
Links:
Tags:
Problem setters: