12
8
import sys s=sys.stdin.read().strip() if not s: sys.exit(0) n=int(s) sys.stdout.write(str(n & (n-1)))