#include <stdio.h>
/*
* 把bit_number指定的位置设置为1
* bit_number 0~31
* */
int make_one(int value,int bit_number)
{
//return value = value | 1 << bit_number;
return value |= 1 << bit_number;
}
/*
* 把bit_number指定的位置设置为0
* bit_number 0~31
* */
int make_zero(int value,int bit_number)
{
//return value = value & ~(1 << bit_number);
return value &= ~(1 << bit_number);
}
int main()
{
int i,bit;
scanf("%d",&i);
scanf("%d",&bit);
int res = make_one(i,bit);
printf("%d\n",res);
res = make_zero(i,bit);
printf("%d\n",res);
}