int add(int a, int b){
    while(a!=0){
        int temp=a^b;
        a=((unsigned int)(a&b)<<1);
        b=temp;
    }
    return b;
}