#include<stdio.h>
int add(int a ,int b )//用位运算实现两个数相加
{
int cf=a&b;
int sum=a^b;
while (cf)
{
a=sum;
b=cf<<1;
cf=a&b;
sum=a^b;
}
return sum;
}
int main()
{
int x,y;
scanf("%d",&x);
y=x<<3;
y=add(x,y);
printf("%d",y);
}
int add(int a ,int b )//用位运算实现两个数相加
{
int cf=a&b;
int sum=a^b;
while (cf)
{
a=sum;
b=cf<<1;
cf=a&b;
sum=a^b;
}
return sum;
}
int main()
{
int x,y;
scanf("%d",&x);
y=x<<3;
y=add(x,y);
printf("%d",y);
}