Ivan and Powers of Two

Problem Name:
Ivan and Powers of Two
Site:CodeForces
Links:
Tags:
Problem setters: