import java.util.*;

public class BinInsert {
    public int binInsert(int n, int m, int j, int i) {
        while(j!=0)
        {
            m*=2;
            j--;
        }
        n+=m;
        return n;
    }
}