Krosh and powers of two

Problem Name:
Krosh and powers of two
Site:CodeForces
Links:
Tags: