main(n){printf("%d\n",~scanf("%d",&n)&n);}