loop:say((-(a=2**((hear().to_i()-1).rem(32)))).to_s()+" to "+(a-1).to_s())